Commit 1214bfca authored by Chenu Denis's avatar Chenu Denis
Browse files

[fix] 5.X issue with tokenanswerpersistence

parent 549453bc
......@@ -621,6 +621,7 @@ class reloadAnyResponse extends PluginBase
$this->enablealloweditaftercompletion = true;
Survey::model()->resetCache();
$this->subscribe('afterFindSurvey', 'setSurveyAttributes');
Survey::model()->findByPk($sid);
}
return;
}
......@@ -631,6 +632,7 @@ class reloadAnyResponse extends PluginBase
$this->enablealloweditaftercompletion = true;
Survey::model()->resetCache();
$this->subscribe('afterFindSurvey', 'setSurveyAttributes');
Survey::model()->findByPk($sid);
return;
}
if(!App()->getRequest()->getParam('code')) {
......@@ -644,6 +646,7 @@ class reloadAnyResponse extends PluginBase
$this->enablealloweditaftercompletion = true;
Survey::model()->resetCache();
$this->subscribe('afterFindSurvey', 'setSurveyAttributes');
Survey::model()->findByPk($sid);
}
/**
......@@ -659,7 +662,7 @@ class reloadAnyResponse extends PluginBase
$this->getEvent()->set('alloweditaftercompletion', 'Y');
}
if ($this->disabletokenanswerspersistence) {
$this->getEvent()->set('tokenanswerspersistence', '');
$this->getEvent()->set('tokenanswerspersistence', 'N');
}
}
......
Supports Markdown
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