diff --git a/typo3/sysext/backend/Resources/Private/Partials/Menus/SelectBoxJumpMenu.html b/typo3/sysext/backend/Resources/Private/Partials/Menus/SelectBoxJumpMenu.html index dc076a7202a946036ec7c7597addedadd4e3318c..cc1638df0fb892592e9dca3851d9924346f55d3c 100644 --- a/typo3/sysext/backend/Resources/Private/Partials/Menus/SelectBoxJumpMenu.html +++ b/typo3/sysext/backend/Resources/Private/Partials/Menus/SelectBoxJumpMenu.html @@ -1,5 +1,7 @@ -{menu.label} <select class="form-control t3-js-jumpMenuBox" name="{menu.identifier}" data-menu-identifier="{menu.dataIdentifier}" onchange="if(this.options[this.selectedIndex].value){window.location.href=(this.options[this.selectedIndex].value);}"> - <f:for each="{menu.menuItems}" as="menuItem"> - <option value="{menuItem.href}" {f:if(condition: '{menuItem.active}', then: ' selected="selected"')}>{menuItem.title}</option> - </f:for> -</select> +<f:if condition="{menu.menuItems -> f:count()} > 1"> + {menu.label} <select class="form-control t3-js-jumpMenuBox" name="{menu.identifier}" data-menu-identifier="{menu.dataIdentifier}" onchange="if(this.options[this.selectedIndex].value){window.location.href=(this.options[this.selectedIndex].value);}"> + <f:for each="{menu.menuItems}" as="menuItem"> + <option value="{menuItem.href}" {f:if(condition: '{menuItem.active}', then: ' selected="selected"')}>{menuItem.title}</option> + </f:for> + </select> +</f:if>