Skip to content

Commit

Permalink
Dev: created aQuestionIndex for coherence (with aQuestionGroup, aQues…
Browse files Browse the repository at this point in the history
…tion, etc)
  • Loading branch information
LouisGac committed Jan 19, 2017
1 parent bd1b2d1 commit c2265f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion application/helpers/SurveyRuntimeHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ public function run($surveyid,$args)
if(!$previewquestion && !$previewgrp){
$questionindex = ls\helpers\questionIndexHelper::getInstance()->getIndexButton();
$questionindexmenu = ls\helpers\questionIndexHelper::getInstance()->getIndexLink();
$thissurvey['indexItems'] = ls\helpers\questionIndexHelper::getInstance()->getIndexItems();
$thissurvey['aQuestionIndex']['items'] = ls\helpers\questionIndexHelper::getInstance()->getIndexItems();
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@

<ul class="dropdown-menu">
{# TODO: move back this logic to SurveyRuntime, and provide a ready to use indexItem.statusClass #}
{% for step, indexItem in aSurveyInfo.indexItems %}
{% for step, indexItem in aSurveyInfo.aQuestionIndex.items %}
{% set statusClass = '' %}
{% if attribute(indexItem.stepStatus, 'index-item-unanswered') is defined and attribute(indexItem.stepStatus, 'index-item-unanswered') == true %}
{% set statusClass = statusClass ~ ' bg-warning' %}
Expand Down

0 comments on commit c2265f5

Please sign in to comment.