Skip to content

Commit

Permalink
Dev: fill $thissurvey with the needed datas for the twig progress bar.
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisGac committed Jan 11, 2017
1 parent bef4113 commit d5fce75
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions application/helpers/SurveyRuntimeHelper.php
Expand Up @@ -288,9 +288,14 @@ public function run($surveyid,$args)

if ($surveyMode != 'survey' && isset($thissurvey['showprogress']) && $thissurvey['showprogress'] == 'Y'){
if ($show_empty_group){
$percentcomplete = makegraph($_SESSION[$LEMsessid]['totalsteps'] + 1, $_SESSION[$LEMsessid]['totalsteps']);
// $percentcomplete = makegraph($_SESSION[$LEMsessid]['totalsteps'] + 1, $_SESSION[$LEMsessid]['totalsteps']);
$thissurvey['progress']['currentstep'] = $_SESSION[$LEMsessid]['totalsteps'] + 1;
$thissurvey['progress']['total'] = $_SESSION[$LEMsessid]['totalsteps'];
}else{
$percentcomplete = makegraph($_SESSION[$LEMsessid]['step'], $_SESSION[$LEMsessid]['totalsteps']);
// $percentcomplete = makegraph($_SESSION[$LEMsessid]['step'], $_SESSION[$LEMsessid]['totalsteps']);
$thissurvey['progress']['currentstep'] = $_SESSION[$LEMsessid]['step'];
$thissurvey['progress']['total'] = $_SESSION[$LEMsessid]['totalsteps'];

}
}

Expand Down

0 comments on commit d5fce75

Please sign in to comment.