Skip to content

Commit

Permalink
Fixed issue: survey data not available on registration views
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisGac authored and olleharstedt committed Jun 5, 2018
1 parent 58083d6 commit 011d085
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions application/controllers/RegisterController.php
Expand Up @@ -502,6 +502,7 @@ private function display($iSurveyId, $iTokenId = null, $registerContent)
$this->aReplacementData['sMessage'] = $this->sMessage;

$oTemplate = Template::model()->getInstance('', $iSurveyId);
$aSurveyInfo = getsurveyinfo($iSurveyId);

if ($iTokenId !== null) {
$aData['aSurveyInfo'] = self::getRegisterSuccess($iSurveyId, $iTokenId);
Expand All @@ -514,6 +515,9 @@ private function display($iSurveyId, $iTokenId = null, $registerContent)

$aData['aSurveyInfo']['registerform']['hiddeninputs'] = '<input value="'.$aData['aSurveyInfo']['sLanguage'].'" type="hidden" name="lang" id="register_lang" /><input value="true" type="hidden" name="register"id="register_register" />';
$aData['aSurveyInfo']['include_content'] = 'register';

$aData['aSurveyInfo'] = array_merge($aSurveyInfo, $aData['aSurveyInfo']);

Yii::app()->twigRenderer->renderTemplateFromFile('layout_global.twig', $aData, false);

}
Expand Down

0 comments on commit 011d085

Please sign in to comment.