Skip to content

Commit

Permalink
Fixed issue #13574: Some placeholders no longer available in 3.x
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisGac committed May 30, 2018
1 parent 044f83b commit df1af8e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions application/helpers/SurveyRuntimeHelper.php
Expand Up @@ -371,6 +371,8 @@ public function run($surveyid, $args)
$aStandardsReplacementFields = getStandardsReplacementFields($this->aSurveyInfo);
$aStandardsReplacementFields['QID'] = $qid;
$aStandardsReplacementFields['SGQ'] = $qa[7];
$aStandardsReplacementFields['GROUPNAME'] = $this->groupname;
$aStandardsReplacementFields['QUESTION_CODE'] = $qa[0]['code'];
}

// easier to understand for survey maker
Expand Down
1 change: 1 addition & 0 deletions application/helpers/replacements_helper.php
Expand Up @@ -474,6 +474,7 @@ function getStandardsReplacementFields($thissurvey)
$coreReplacements['WELCOME'] = (isset($thissurvey['welcome']) ? $thissurvey['welcome'] : '');
$coreReplacements['CLOSE_TRANSLATION'] = gT('Close');
$coreReplacements['ASSESSMENT_CURRENT_TOTAL'] = $_assessment_current_total;
$coreReplacements['TEMPLATEURL'] = Template::model()->getInstance()->templateURL;

return $coreReplacements;
}
Expand Down

0 comments on commit df1af8e

Please sign in to comment.