Skip to content

Commit

Permalink
fixed issue #13156: Some Variables are not working in ongoing survey:…
Browse files Browse the repository at this point in the history
… ASSESSMENT_CURRENT_TOTAL and TOKEN:TOKEN
  • Loading branch information
LouisGac committed Jan 10, 2018
1 parent cd2341a commit 5e0de72
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions application/helpers/replacements_helper.php
Expand Up @@ -466,10 +466,11 @@ function getStandardsReplacementFields($thissurvey)
$_datestamp = '-';
}

$_saveall = "";
$aSaveAllButtons = "";
$_restart = "";
$_return_to_survey = "";
if (!empty($thissurvey['aAssessments'])){
$_assessment_current_total = $thissurvey['aAssessments']['total'];
}else{
$_assessment_current_total = '';
}


// Set the array of replacement variables here - don't include curly braces
Expand Down Expand Up @@ -510,6 +511,7 @@ function getStandardsReplacementFields($thissurvey)
$coreReplacements['WELCOME'] = (isset($thissurvey['welcome']) ? $thissurvey['welcome'] : '');
$coreReplacements['CLOSE_TRANSLATION'] = gT('Close');

$coreReplacements['ASSESSMENT_CURRENT_TOTAL'] = $_assessment_current_total;
return $coreReplacements;
}

Expand Down

0 comments on commit 5e0de72

Please sign in to comment.