Skip to content

Commit

Permalink
Fixed Issue #16103: Switching language without inline policy notice b…
Browse files Browse the repository at this point in the history
…eing ticked creates empty responses. (#1437)
  • Loading branch information
gabrieljenik committed Jun 19, 2020
1 parent afcb657 commit cb24243
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions application/helpers/SurveyRuntimeHelper.php
Expand Up @@ -101,8 +101,8 @@ public function run($surveyid, $args)
}

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
$this->checkQuotas(); // check quotas (then the process will stop here)
$this->displayFirstPageIfNeeded();
$this->saveAllIfNeeded();
Expand Down Expand Up @@ -1142,7 +1142,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 cb24243

Please sign in to comment.