Skip to content

Commit

Permalink
Fixed issue: show no survey menu when no survey options are available
Browse files Browse the repository at this point in the history
  • Loading branch information
twilligls committed Jun 12, 2023
1 parent b7b1936 commit 68e18d3
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions themes/survey/ls6_surveytheme/views/subviews/header/nav_bar.twig
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,8 @@ For the survey navigator ("Next", "Back", etc.), see: navigation/navigator.twig
<div id="navbar-menu" class="dropdown ms-auto ls-no-js-hidden">
{% if( aSurveyInfo.aNavigator.load.show == "Y" or
aSurveyInfo.aNavigator.save.show == "Y" or
aSurveyInfo.bShowClearAll == true or
aSurveyInfo.bShowClearAll == null or
aSurveyInfo.options.showclearall == 'on' or
((aSurveyInfo.bShowClearAll == true or aSurveyInfo.bShowClearAll == null) and
aSurveyInfo.options.showclearall == 'on') or
aSurveyInfo.aQuestionIndex.bShow == true or
aSurveyInfo.alanguageChanger.show == true) %}
<div id="navbar-toggler" class="navbar-toggler" data-bs-toggle="dropdown"
Expand All @@ -40,9 +39,8 @@ For the survey navigator ("Next", "Back", etc.), see: navigation/navigator.twig
{{ include('./subviews/navigation/language_changer_top_menu.twig') }}
{% if( aSurveyInfo.aNavigator.load.show == "Y" or
aSurveyInfo.aNavigator.save.show == "Y" or
aSurveyInfo.bShowClearAll == true or
aSurveyInfo.bShowClearAll == null or
aSurveyInfo.options.showclearall == 'on' or
((aSurveyInfo.bShowClearAll == true or aSurveyInfo.bShowClearAll == null) and
aSurveyInfo.options.showclearall == 'on') or
aSurveyInfo.aQuestionIndex.bShow == true) %}
<li class="dropdown-header">{{ gT("SURVEY OPTIONS") }}</li>
{% endif %}
Expand Down

0 comments on commit 68e18d3

Please sign in to comment.