From cb2424333afee56810cf9f91ee8e8a2bda24e644 Mon Sep 17 00:00:00 2001 From: Gabriel Jenik Date: Fri, 19 Jun 2020 11:44:50 -0300 Subject: [PATCH] Fixed Issue #16103: Switching language without inline policy notice being ticked creates empty responses. (#1437) --- application/helpers/SurveyRuntimeHelper.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/helpers/SurveyRuntimeHelper.php b/application/helpers/SurveyRuntimeHelper.php index fd96eedba0b..9f7f919162e 100644 --- a/application/helpers/SurveyRuntimeHelper.php +++ b/application/helpers/SurveyRuntimeHelper.php @@ -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(); @@ -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;