Skip to content

Commit

Permalink
Dev: don't define number of question for survey list
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisGac committed Nov 17, 2017
1 parent 264d94f commit 2698967
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions application/core/LSETwigViewRenderer.php
Expand Up @@ -253,11 +253,14 @@ public function renderTemplateFromString( $line, $aDatas, $oTemplate, $bReturn=f
}
}

$showxquestions = Yii::app()->getConfig('showxquestions');
$aDatas["aSurveyInfo"]['bShowxquestions'] = ( $showxquestions == 'show' || ($showxquestions == 'choose' && !isset($this->aSurveyInfo['showxquestions'])) || ($showxquestions == 'choose' && $this->aSurveyInfo['showxquestions'] == 'Y'));
$aDatas["aSurveyInfo"]['languagecode'] = $languagecode;
$aDatas["aSurveyInfo"]['dir'] = (getLanguageRTL($languagecode))?"rtl":"ltr";
$aDatas["aSurveyInfo"]['iTotalquestions'] = $_SESSION['survey_'.$aDatas['aSurveyInfo']['sid']]['totalquestions'];
if (!empty($aDatas['aSurveyInfo']['sid'])){
$showxquestions = Yii::app()->getConfig('showxquestions');
$aDatas["aSurveyInfo"]['bShowxquestions'] = ( $showxquestions == 'show' || ($showxquestions == 'choose' && !isset($this->aSurveyInfo['showxquestions'])) || ($showxquestions == 'choose' && $this->aSurveyInfo['showxquestions'] == 'Y'));
$aDatas["aSurveyInfo"]['languagecode'] = $languagecode;
$aDatas["aSurveyInfo"]['dir'] = (getLanguageRTL($languagecode))?"rtl":"ltr";
$aDatas["aSurveyInfo"]['iTotalquestions'] = $_SESSION['survey_'.$aDatas['aSurveyInfo']['sid']]['totalquestions'];
}


// Add all mother templates path
while($oRTemplate->oMotherTemplate instanceof TemplateConfiguration){
Expand Down

0 comments on commit 2698967

Please sign in to comment.