Skip to content

Commit

Permalink
Fixed issue: Modified default config value for shownoanswer causes no…
Browse files Browse the repository at this point in the history
…n-saving in survey settings
  • Loading branch information
c-schmitz committed Jul 18, 2018
1 parent 52f31c5 commit df39adc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/controllers/admin/database.php
Expand Up @@ -955,7 +955,7 @@ private function actionUpdateSurveyLocaleSettings($iSurveyID)
if (getGlobalSetting('showqnumcode') === 'choose'){
$oSurvey->showqnumcode = $this->_filterEmptyFields($oSurvey, 'showqnumcode');
}
if (getGlobalSetting('shownoanswer') === '2'){
if (getGlobalSetting('shownoanswer') == 2){ // Don't do exact comparison because the value could be from global settings table (string) or from config (integer)
$oSurvey->shownoanswer = $this->_filterEmptyFields($oSurvey, 'shownoanswer');
}
$oSurvey->showwelcome = $this->_filterEmptyFields($oSurvey, 'showwelcome');
Expand Down

0 comments on commit df39adc

Please sign in to comment.