Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed issue #16397: Switching language without inline policy notice b…
…eing ticked creates empty responses (#1446)
  • Loading branch information
gabrieljenik committed Jul 2, 2020
1 parent 14a8d26 commit a5969d2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions application/helpers/SurveyRuntimeHelper.php
Expand Up @@ -200,8 +200,8 @@ public function run($surveyid, $args)
$this->showTokenOrCaptchaFormsIfNeeded();
}
if (!$this->previewgrp && !$this->previewquestion) {
$this->checkForDataSecurityAccepted();
$this->initMove(); // main methods to init session, LEM, moves, errors, etc
$this->checkForDataSecurityAccepted(); // must be called after initMove to allow LEM to be initialized
if (EmCacheHelper::useCache()) {
$this->aSurveyInfo['emcache'] = true;
}
Expand Down Expand Up @@ -1020,7 +1020,7 @@ private function checkIfFinished()
$this->sMove = 'movesubmit';
$this->aMoveResult['finished'] = true;
}

if ($this->sMove == "movesubmit" && $this->aMoveResult['finished'] == false) {
// then there are errors, so don't finalize the survey
$this->sMove = "movenext"; // so will re-display the survey
Expand Down Expand Up @@ -1260,7 +1260,7 @@ private function moveSubmitIfNeeded()
$this->aSurveyInfo['aCompleted']['aPrintAnswers']['sText'] = gT("Print your answers.");
$this->aSurveyInfo['aCompleted']['aPrintAnswers']['sTitle'] = $surveyActive ? $this->aSurveyInfo['aCompleted']['aPrintAnswers']['sText'] : gT("Note: This link only works if the survey is activated.");
}
// Link to Public statistics
// Link to Public statistics
$this->aSurveyInfo['aCompleted']['aPublicStatistics']['show'] = false;
if ($this->aSurveyInfo['publicstatistics'] == 'Y') {
$this->aSurveyInfo['aCompleted']['aPublicStatistics']['show'] = true;
Expand Down

0 comments on commit a5969d2

Please sign in to comment.