Skip to content

Commit

Permalink
Fixed issue #16665: Question index not shown if survey mode is set to…
Browse files Browse the repository at this point in the history
… "inherit" (#1602)

* Fixed issue #16665: Question index not shown if survey mode is set to "inherit"

Reviewed code

* Fixed issue #16665: Question index not shown if survey mode is set to "inherit"

Reviewed code
  • Loading branch information
gabrieljenik committed Oct 2, 2020
1 parent fec817c commit 9e193f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions application/helpers/questionIndexHelper.php
Expand Up @@ -65,8 +65,8 @@ private function __construct($iSurveyId)
$this->iSurveyId = $iSurveyId;
$oSurvey = \Survey::model()->findByPk($this->iSurveyId);
if ($oSurvey) {
$this->indexType = $oSurvey->questionindex;
$this->surveyFormat = $oSurvey->format;
$this->indexType = $oSurvey->aOptions['questionindex'];
$this->surveyFormat = $oSurvey->aOptions['format'];
} else {
$this->indexType = 0;
$this->surveyFormat = null;
Expand Down

0 comments on commit 9e193f4

Please sign in to comment.