Skip to content

Commit

Permalink
Dev: added todo note
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisGac committed Feb 23, 2017
1 parent 0c61761 commit 018a5fa
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions application/helpers/SurveyRuntimeHelper.php
Expand Up @@ -141,6 +141,8 @@ public function run($surveyid,$args)
$this->displayFirstPageIfNeeded();
$this->saveAllIfNeeded();
$this->saveSubmitIfNeeded();

// TODO: move somewhere else
$this->setNotAnsweredAndNotValidated();

}else{
Expand All @@ -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']);
}
}
Expand Down Expand Up @@ -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'];
Expand Down

0 comments on commit 018a5fa

Please sign in to comment.