From d0e37f8d6f98fba8d766b44d2807569601618069 Mon Sep 17 00:00:00 2001 From: LouisGac Date: Mon, 20 Feb 2017 12:52:18 +0100 Subject: [PATCH] Dev: move displayFirstPageIfNeeded() with showTokenOrCaptchaFormsIfNeeded() --- 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 abc38644726..891952a471f 100644 --- a/application/helpers/SurveyRuntimeHelper.php +++ b/application/helpers/SurveyRuntimeHelper.php @@ -134,6 +134,7 @@ public function run($surveyid,$args) // TODO: cehck if languagechanger shown in token/captcha form // TOKEN/CAPTCHA FORMS $this->showTokenOrCaptchaFormsIfNeeded(); + $this->displayFirstPageIfNeeded(); } @@ -142,8 +143,7 @@ public function run($surveyid,$args) if ( !$this->previewgrp && !$this->previewquestion){ $this->initMove(); // main methods to init session, LEM, moves, errors, etc $aPrivateVariables = $this->getArgs(); - - $this->displayFirstPageIfNeeded(); + $this->saveAllIfNeeded(); $this->saveSubmitIfNeeded(); $this->setNotAnsweredAndNotValidated();