Skip to content

Commit

Permalink
Dev: some cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisGac committed Mar 30, 2017
1 parent 8de3071 commit cd3ff98
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions application/helpers/SurveyRuntimeHelper.php
Expand Up @@ -1858,15 +1858,15 @@ private function setSurveySettings( $surveyid, $args )
$sLangCode = $this->sLangCode = App()->language;
$show_empty_group = $this->show_empty_group;
}

private function setPreview()
{
$aPrivateVariables = $this->getArgs();
extract($aPrivateVariables);


$_SESSION[$this->LEMsessid]['prevstep'] = 2;
$_SESSION[$this->LEMsessid]['maxstep'] = 0;
$_SESSION[$this->LEMsessid]['maxstep'] = 0;

if ($this->previewquestion){
$_SESSION[$LEMsessid]['step'] = 0; //maybe unset it after the question has been displayed?
Expand All @@ -1877,6 +1877,7 @@ private function setPreview()

LimeExpressionManager::StartSurvey($thissurvey['sid'], 'group', $surveyOptions, false, $this->LEMdebugLevel);
$gseq = LimeExpressionManager::GetGroupSeq($_gid);

if ($gseq == -1){
$sMessage = gT('Invalid group number for this survey: ') . $_gid;
renderError('', $sMessage, $thissurvey, $sTemplateViewPath );
Expand Down

0 comments on commit cd3ff98

Please sign in to comment.