Skip to content

Commit

Permalink
Merge branch 'master' of git@github.com:LimeSurvey/LimeSurvey.git int…
Browse files Browse the repository at this point in the history
…o answers_html
  • Loading branch information
Shnoulle committed Nov 1, 2016
2 parents e34e2df + f3fe182 commit 652bbdf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion application/controllers/admin/conditionsaction.php
Expand Up @@ -2013,7 +2013,8 @@ protected function getEditFormJavascript($subaction)
}
elseif (is_array($request->getPost('EDITcanswers'))) { // was a predefined answers post
$aViewUrls['output'] .= "\tdocument.getElementById('editTargetTab').value='#CANSWERSTAB';\n";
$aViewUrls['output'] .= "\t$('#canswersToSelect').val('".$request->getPost('EDITcanswers')[0]."');\n";
$EDITcanswers = $request->getPost('EDITcanswers');
$aViewUrls['output'] .= "\t$('#canswersToSelect').val('".$EDITcanswers[0]."');\n";
}

if ($request->getPost('csrctoken') != '') {
Expand Down
4 changes: 4 additions & 0 deletions application/core/Survey_Common_Action.php
Expand Up @@ -256,6 +256,10 @@ protected function _renderWrappedTemplate($sAction = '', $aViewUrls = array(), $
{
$aData['oSurvey'] = Survey::model()->findByPk($aData['surveyid']);

// Needed to evaluate EM expressions in question summary
// See bug #11845
LimeExpressionManager::StartProcessingPage(false,true);

$this->_titlebar($aData);

//// Each view will call the correct bar as a subview.
Expand Down

0 comments on commit 652bbdf

Please sign in to comment.