Commit 4cf6640e authored by Chenu Denis's avatar Chenu Denis

Dev: fixed issue : Token with alow edit completion don't need restart the session

parent 7f83cb4f
......@@ -82,7 +82,7 @@ class index extends CAction {
$this->_createNewUserSessionAndRedirect($surveyid, $redata, __LINE__, $asMessage);
}
if ( $this->_isSurveyFinished($surveyid) )
if ( $this->_isSurveyFinished($surveyid) && ($thissurvey['alloweditaftercompletion'] != 'Y' || $thissurvey['tokenanswerspersistence'] != 'Y')) // No test for response update
{
$aReloadUrlParam=array('lang'=>$clang->langcode,'newtest'=>'Y');
if($clienttoken){$aReloadUrlParam['token']=$clienttoken;}
......
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