diff --git a/application/controllers/survey/index.php b/application/controllers/survey/index.php index 551e6cc633d..fea17e096ca 100644 --- a/application/controllers/survey/index.php +++ b/application/controllers/survey/index.php @@ -21,7 +21,7 @@ public function run() function action() { global $surveyid; - global $thisstep; + global $thissurvey, $thisstep; global $clienttoken, $tokensexist, $token; global $clang; $clang = Yii::app()->lang; @@ -30,13 +30,14 @@ function action() $this->_loadRequiredHelpersAndLibraries(); $param = $this->_getParameters(func_get_args(), $_POST); + $surveyid = $param['sid']; Yii::app()->setConfig('surveyID',$surveyid); $thisstep = $param['thisstep']; $move = $param['move']; $clienttoken = $param['token']; $standardtemplaterootdir = Yii::app()->getConfig('standardtemplaterootdir'); - $thissurvey = getSurveyInfo($surveyid); + if (is_null($thissurvey)) $thissurvey = getSurveyInfo($surveyid); // unused vars in this method (used in methods using compacted method vars) @$loadname = $param['loadname'];