[BUGFIX] Return passed $text if EXT:context_help is not installed 36/45236/2
authorAndreas Fernandez <a.fernandez@scripting-base.de>
Mon, 14 Dec 2015 11:50:38 +0000 (12:50 +0100)
committerGeorg Ringer <georg.ringer@gmail.com>
Mon, 14 Dec 2015 12:30:13 +0000 (13:30 +0100)
Return `$text` instead of an empty string if EXT:context_help
is not installed. This shows the field label again but hides the
help buttons.

Resolves: #72205
Related: #71659
Releases: master
Change-Id: I6dba5e40c05e2555ad73d71eb6d177990225a0b4
Reviewed-on: https://review.typo3.org/45236
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Mathias Brodala <mbrodala@pagemachine.de>
Reviewed-by: Frank Nägler <frank.naegler@typo3.org>
Tested-by: Frank Nägler <frank.naegler@typo3.org>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
typo3/sysext/backend/Classes/Utility/BackendUtility.php

index 64a8944..a8ab0af 100755 (executable)
@@ -2836,7 +2836,7 @@ class BackendUtility
     public static function wrapInHelp($table, $field, $text = '', array $overloadHelpText = array())
     {
         if (!ExtensionManagementUtility::isLoaded('context_help')) {
-            return '';
+            return $text;
         }
 
         // Initialize some variables