Skip to content

Commit

Permalink
Fixed issue #13902: LimeSurvey try to update response when editing Qu…
Browse files Browse the repository at this point in the history
…estion

Dev: use SetPreviewMode
Dev: maybe can enforce SetPreviewMode(false) in SurveyController ?
  • Loading branch information
Shnoulle committed Aug 1, 2018
1 parent 3e3b0b1 commit 8ea64e8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion application/controllers/admin/database.php
Expand Up @@ -1487,9 +1487,10 @@ private function actionInsertCopyQuestion($iSurveyID)

private function _resetEM(){
$oSurvey = Survey::model()->findByPk($this->iSurveyID);
LimeExpressionManager::SetDirtyFlag();
$oEM =& LimeExpressionManager::singleton();
LimeExpressionManager::SetDirtyFlag(); // UpgradeConditionsToRelevance SetDirtyFlag too
LimeExpressionManager::UpgradeConditionsToRelevance($this->iSurveyID);
LimeExpressionManager::SetPreviewMode('database');// Deactivate _UpdateValuesInDatabase
LimeExpressionManager::StartSurvey($oSurvey->sid,'survey',$oSurvey->attributes,true);
LimeExpressionManager::StartProcessingPage(true,true);
$aGrouplist = QuestionGroup::model()->getGroups($this->iSurveyID);
Expand Down

0 comments on commit 8ea64e8

Please sign in to comment.