Skip to content

Commit

Permalink
Fixed issue #12620: No difference between preview question group and …
Browse files Browse the repository at this point in the history
…preview question
  • Loading branch information
LouisGac committed Nov 13, 2017
1 parent 78dbae1 commit 2397809
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions application/helpers/SurveyRuntimeHelper.php
Expand Up @@ -1670,14 +1670,17 @@ private function setSurveySettings( $surveyid, $args )
$this->setSurveyMode();
$this->setSurveyOptions();

$this->previewgrp = ($this->sSurveyMode == 'group' && isset($this->param['action']) && ($this->param['action'] == 'previewgroup')) ? true : false;
$this->previewquestion = ($this->sSurveyMode == 'question' && isset($this->param['action']) && ($this->param['action'] == 'previewquestion')) ? true : false;
$this->previewgrp = (isset($this->param['action']) && $this->param['action'] == 'previewgroup')?true:false;
$this->previewquestion = (isset($this->param['action']) && $this->param['action'] == 'previewquestion')?true:false;

$this->preview = ($this->previewquestion || $this->previewgrp);
$this->sLangCode = App()->language;
}

private function setPreview()
{
$this->sSurveyMode = ($this->previewgrp) ? 'group':'question';

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

Expand Down

0 comments on commit 2397809

Please sign in to comment.