From de13135bdf32fcba8153d1524f3c1f274c1da3de Mon Sep 17 00:00:00 2001 From: Denis Chenu Date: Fri, 26 Jun 2015 08:32:53 +0200 Subject: [PATCH] Fixed issue #09589: Testing a survey for admin user can be broken Dev: This reset EM for attribute and help Dev: question text and relevance are in EM session and not resetted (need buildsurveysession) Dev: LS 3 don't use $_SESSION --- application/helpers/expressions/em_manager_helper.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/application/helpers/expressions/em_manager_helper.php b/application/helpers/expressions/em_manager_helper.php index ff9e45a3f6a..2cf8298cf7f 100644 --- a/application/helpers/expressions/em_manager_helper.php +++ b/application/helpers/expressions/em_manager_helper.php @@ -718,6 +718,12 @@ public static function SetDirtyFlag() { $_SESSION['LEMdirtyFlag'] = true;// For fieldmap and other. question help {HELP} is taken from fieldmap $_SESSION['LEMforceRefresh'] = true;// For Expression manager string + /* Bug #09589 : update a survey don't reset actual test => Force reloading of survey */ + $iSessionSurveyId=self::getLEMsurveyId(); + if($aSessionSurvey=Yii::app()->session["survey_{$iSessionSurveyId}"]) + { + Yii::app()->session["survey_{$iSessionSurveyId}"]['LEMtokenResume']=true; + } } /**