[BUGFIX] Register "then"/"else" in IfHasRoleViewHelper again 02/58702/2
authorMathias Brodala <mbrodala@pagemachine.de>
Thu, 25 Oct 2018 09:07:58 +0000 (11:07 +0200)
committerStefan Neufeind <typo3.neufeind@speedpartner.de>
Thu, 25 Oct 2018 16:53:02 +0000 (18:53 +0200)
This fixes the usage of "then" and "else" for the inline notation.

Resolves: #86743
Releases: master, 8.7
Change-Id: Ia0a749fedcb3b3d4ffe7f90ac40ab604fd7c340a
Reviewed-on: https://review.typo3.org/58702
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Joerg Kummer <typo3@enobe.de>
Tested-by: Joerg Kummer <typo3@enobe.de>
Reviewed-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Tested-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
typo3/sysext/fluid/Classes/ViewHelpers/Be/Security/IfHasRoleViewHelper.php
typo3/sysext/fluid/Classes/ViewHelpers/Security/IfHasRoleViewHelper.php

index cf3305a..07f3abb 100644 (file)
@@ -63,6 +63,8 @@ class IfHasRoleViewHelper extends \TYPO3\CMS\Fluid\Core\ViewHelper\AbstractCondi
      */
     public function initializeArguments()
     {
+        parent::initializeArguments();
+
         $this->registerArgument('role', 'string', 'The usergroup (either the usergroup uid or its title).');
     }
 
index 1de9810..1325a3d 100644 (file)
@@ -63,6 +63,8 @@ class IfHasRoleViewHelper extends \TYPO3\CMS\Fluid\Core\ViewHelper\AbstractCondi
      */
     public function initializeArguments()
     {
+        parent::initializeArguments();
+
         $this->registerArgument('role', 'string', 'The usergroup (either the usergroup uid or its title).');
     }