From 018a5fafcb374ff6a2c4fd0cb149e232b6825fe3 Mon Sep 17 00:00:00 2001 From: LouisGac Date: Thu, 23 Feb 2017 15:51:25 +0100 Subject: [PATCH] Dev: added todo note --- application/helpers/SurveyRuntimeHelper.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/application/helpers/SurveyRuntimeHelper.php b/application/helpers/SurveyRuntimeHelper.php index b89ba53c197..53cd3c419d1 100644 --- a/application/helpers/SurveyRuntimeHelper.php +++ b/application/helpers/SurveyRuntimeHelper.php @@ -141,6 +141,8 @@ public function run($surveyid,$args) $this->displayFirstPageIfNeeded(); $this->saveAllIfNeeded(); $this->saveSubmitIfNeeded(); + + // TODO: move somewhere else $this->setNotAnsweredAndNotValidated(); }else{ @@ -151,7 +153,7 @@ public function run($surveyid,$args) // TODO: remove those line, why a special condition when survey is not active VS when it's active and why HERE???? if ($this->thissurvey['active'] != "Y"){ // TODO: TWIG ASSESSMENTS !!!!! - if ($thissurvey['assessments'] == "Y"){ + if ($thissurvey['assessments'] == "Y"){ $assessments = $this->assessments = doAssessment($thissurvey['sid']); } } @@ -1178,7 +1180,7 @@ private function saveSubmitIfNeeded() Yii::import("application.libraries.Save"); $cSave = new Save(); - // Try to save survey + // Try to save survey $aResult = $cSave->saveSurvey(); if (!$aResult['success']){ $aPopup = $this->popup = $aResult['aSaveErrors'];