Skip to content

Commit

Permalink
Fixed issue: Notice on survey completion
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Feb 12, 2020
1 parent 95eee8b commit a4405e4
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions application/helpers/SurveyRuntimeHelper.php
Expand Up @@ -674,20 +674,17 @@ private function initMove()
private function setArgs()
{
if ($this->sMove == "movesubmit") {
$aSurveyInfo = getSurveyInfo($this->iSurveyid, App()->getLanguage());
$this->aSurveyInfo = $aSurveyInfo;

if ($this->aSurveyInfo['refurl'] == "Y") {
//Only add this if it doesn't already exist
if (!in_array("refurl", $_SESSION[$this->LEMsessid]['insertarray'])) {
$_SESSION[$this->LEMsessid]['insertarray'][] = "refurl";
}
}

resetTimers();

// TODO: Why is $this->aSurveyInfo empty here?
$aSurveyInfo = getSurveyInfo($this->iSurveyid, App()->getLanguage());
$this->aSurveyInfo = $aSurveyInfo;

//Before doing the "templatereplace()" function, check the $this->aSurveyInfo['url']
//field for limereplace stuff, and do transformations!
$this->aSurveyInfo['surveyls_url'] = passthruReplace($this->aSurveyInfo['surveyls_url'], $this->aSurveyInfo);
Expand Down

0 comments on commit a4405e4

Please sign in to comment.