[BUGFIX] Only show CSH icon when EXT:context_help is loaded 04/48404/2
authorBenni Mack <benni@typo3.org>
Mon, 30 May 2016 12:38:33 +0000 (14:38 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Mon, 30 May 2016 16:40:46 +0000 (18:40 +0200)
When having EXT:context_help uninstalled an empty button is shown in
Web => Info => PageTSconfig, because the text could not be fetched.

Solution: Only show the button if there is a text inside.

Resolves: #76376
Releases: master, 7.6
Change-Id: I06b14a7f6166ec1e9bca412b3b3404762fc7d7b6
Reviewed-on: https://review.typo3.org/48404
Reviewed-by: Gianluigi Martino <gmartino27@gmail.com>
Tested-by: Gianluigi Martino <gmartino27@gmail.com>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/info_pagetsconfig/Resources/Private/Partials/Page.html

index df961b9..d99e0e2 100644 (file)
@@ -1,5 +1,7 @@
 <h1>{f:translate(key: 'LLL:EXT:info_pagetsconfig/Resources/Private/Language/locallang.xlf:tsconf_title')}</h1>
-<span class="btn btn-default btn-sm"><f:format.raw>{csh}</f:format.raw></span>
+<f:if condition="{csh}">
+    <span class="btn btn-default btn-sm"><f:format.raw>{csh}</f:format.raw></span>
+</f:if>
 <f:render partial="Menu" arguments="{_all}" />
 <f:if condition="{tsconfParts99}">
     <f:then>