Skip to content

Commit

Permalink
Fixed issue: no token replacement in end url
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisGac committed Jun 29, 2018
1 parent 903c8e4 commit ca57e4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/helpers/SurveyRuntimeHelper.php
Expand Up @@ -1169,9 +1169,9 @@ private function moveSubmitIfNeeded()

$this->aSurveyInfo['aCompleted']['sPluginHTML'] = implode("\n", $blocks)."\n";
$this->aSurveyInfo['aCompleted']['sSurveylsUrl'] = $this->aSurveyInfo['surveyls_url'];
$this->aSurveyInfo['surveyls_url'] = $this->processString($this->aSurveyInfo['surveyls_url']);
$this->aSurveyInfo['surveyls_url'] = passthruReplace($this->aSurveyInfo['surveyls_url'], $this->aSurveyInfo);
$this->aSurveyInfo['surveyls_url'] = templatereplace($this->aSurveyInfo['surveyls_url'], array(), $redata, 'URLReplace', false, null, array(), true); // to do INSERTANS substitutions
$this->aSurveyInfo['surveyls_url'] = $this->processString($this->aSurveyInfo['surveyls_url']);
$this->aSurveyInfo['aCompleted']['sSurveylsUrl'] = $this->aSurveyInfo['surveyls_url'];

// TODO: Process string in url description?
Expand Down

2 comments on commit ca57e4e

@Shnoulle
Copy link
Collaborator

@Shnoulle Shnoulle commented on ca57e4e Jun 29, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since PassthruReplace use {PASSTHRU:XXX} i think it must be before , because EM set this to an error , no ?

What is the usage of templatereplace currently ?

@Shnoulle
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@LouisGac did you check for PASSTHRU ?

Please sign in to comment.