Skip to content

Commit

Permalink
Fixed issue #06744: Expressionmanager show false error if admin lang …
Browse files Browse the repository at this point in the history
…are not in default survey lang

Dev : in view, all survey are to be set in default lang, because survey is shown in default lang
Dev : GetLastPrettyPrintExpression seems to be updated without StartProcessingPage
  • Loading branch information
Shnoulle committed Oct 30, 2012
1 parent 1b80549 commit 5333e1a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions application/controllers/admin/surveyadmin.php
Expand Up @@ -286,6 +286,12 @@ public function view($iSurveyID, $gid = null, $qid = null)
if (isset($qid))
$qid = sanitize_int($qid);

// Reinit LEMlang and LEMsid: ensure LEMlang are set to default lang, surveyid are set to this survey id
// Ensure Last GetLastPrettyPrintExpression get info from this sid and default lang
LimeExpressionManager::SetEMLanguage(Survey::model()->findByPk($iSurveyID)->language);
LimeExpressionManager::SetSurveyId($iSurveyID);
LimeExpressionManager::StartProcessingPage(false,true);

$aData['surveyid'] = $iSurveyID;
$aData['gid'] = $gid;
$aData['qid'] = $qid;
Expand Down

0 comments on commit 5333e1a

Please sign in to comment.