Skip to content

Commit

Permalink
Fixed issue #13913: Some replacementfieds not accessible in help-text
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisGac committed Jul 30, 2018
1 parent 4555aaf commit cec8015
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion application/helpers/SurveyRuntimeHelper.php
Expand Up @@ -365,7 +365,9 @@ public function run($surveyid, $args)

$aStandardsReplacementFields = array();
$this->aSurveyInfo['surveyls_url'] = $this->processString($this->aSurveyInfo['surveyls_url']);
if (strpos($qa[0]['text'], "{") !== false) {

if ( strpos( $qa[0]['text'], '{' ) || strpos( $lemQuestionInfo['info']['help'], '{' ) ) {

// process string anyway so that it can be pretty-printed
$aStandardsReplacementFields = getStandardsReplacementFields($this->aSurveyInfo);
$aStandardsReplacementFields['QID'] = $qid;
Expand Down

0 comments on commit cec8015

Please sign in to comment.