Commit ab8ba58e authored by Chenu Denis's avatar Chenu Denis

[fix] Reload survey can send notice

parent 480a1d3d
......@@ -529,6 +529,7 @@ class reloadAnyResponse extends PluginBase {
return;
}
$oResponse = SurveyDynamic::model($surveyid)->find("id = :srid",array(':srid'=>$srid));
$language = Yii::app()->getLanguage();
if(!$oResponse) {
$this->_HttpException(404, $this->_translate('Response not found.'),$surveyid);
}
......@@ -554,6 +555,7 @@ class reloadAnyResponse extends PluginBase {
// Better to set Survey to alloweditaftercompletion == 'Y', but unable at this time on afterFindSurvey event
}
}
$_SESSION['survey_'.$surveyid]['s_lang'] = $language; /* buildsurveysession use session lang … , send a notic if not set */
buildsurveysession($surveyid);
if (!empty($oResponse->submitdate)) {
$_SESSION['survey_'.$surveyid]['maxstep'] = $_SESSION['survey_'.$surveyid]['totalsteps'];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment