From 6f7b033bb170255b5833208a53ed003e1e3cd493 Mon Sep 17 00:00:00 2001
From: Benni Mack <benni@typo3.org>
Date: Mon, 30 May 2016 14:38:33 +0200
Subject: [PATCH] [BUGFIX] Only show CSH icon when EXT:context_help is loaded

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>
---
 .../info_pagetsconfig/Resources/Private/Partials/Page.html    | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/typo3/sysext/info_pagetsconfig/Resources/Private/Partials/Page.html b/typo3/sysext/info_pagetsconfig/Resources/Private/Partials/Page.html
index df961b985cb9..d99e0e20d4dc 100644
--- a/typo3/sysext/info_pagetsconfig/Resources/Private/Partials/Page.html
+++ b/typo3/sysext/info_pagetsconfig/Resources/Private/Partials/Page.html
@@ -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>
-- 
GitLab