[BUGFIX] Preset filename to empty string in HelpButton 74/43974/2
authorMathias Schreiber <mathias.schreiber@wmdb.de>
Sun, 11 Oct 2015 09:44:24 +0000 (11:44 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sun, 11 Oct 2015 18:47:26 +0000 (20:47 +0200)
Releases: master
Resolves: #70570
Change-Id: Ie7d33f4dc1fa66d6cb707482ad0a6e0d498c47ff
Reviewed-on: http://review.typo3.org/43974
Reviewed-by: Michael Oehlhof <typo3@oehlhof.de>
Tested-by: Michael Oehlhof <typo3@oehlhof.de>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/backend/Classes/Template/Components/Buttons/Action/HelpButton.php

index 11c2a7c..b5f322e 100644 (file)
@@ -43,7 +43,7 @@ class HelpButton implements ButtonInterface, PositionInterface
     /**
      * @var string
      */
-    protected $fieldName;
+    protected $fieldName = '';
 
     /**
      * Gets the name of the module.
@@ -127,10 +127,7 @@ class HelpButton implements ButtonInterface, PositionInterface
      */
     public function isValid()
     {
-        return (
-            !empty($this->moduleName)
-            && !empty($this->fieldName)
-        );
+        return (!empty($this->moduleName));
     }
 
     /**