From 9e193f4f745ee31848be19508a7702b36274388d Mon Sep 17 00:00:00 2001 From: Gabriel Jenik Date: Fri, 2 Oct 2020 05:12:54 -0300 Subject: [PATCH] Fixed issue #16665: Question index not shown if survey mode is set to "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 --- application/helpers/questionIndexHelper.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/helpers/questionIndexHelper.php b/application/helpers/questionIndexHelper.php index 29f0564acfa..121de0a2975 100644 --- a/application/helpers/questionIndexHelper.php +++ b/application/helpers/questionIndexHelper.php @@ -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;