[BUGFIX] Register "then"/"else" in IfHasRoleViewHelper again 92/58692/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 14:42:32 +0000 (16:42 +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/58692
Reviewed-by: Andreas Fernandez <a.fernandez@scripting-base.de>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Daniel Goerz <daniel.goerz@posteo.de>
Tested-by: Daniel Goerz <daniel.goerz@posteo.de>
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 ff37b95..715fd0c 100644 (file)
@@ -63,6 +63,8 @@ class IfHasRoleViewHelper extends AbstractConditionViewHelper
      */
     public function initializeArguments()
     {
+        parent::initializeArguments();
+
         $this->registerArgument('role', 'string', 'The usergroup (either the usergroup uid or its title).');
     }
 
index 66332e6..71bf71f 100644 (file)
@@ -66,6 +66,8 @@ class IfHasRoleViewHelper extends AbstractConditionViewHelper
      */
     public function initializeArguments()
     {
+        parent::initializeArguments();
+
         $this->registerArgument('role', 'string', 'The usergroup (either the usergroup uid or its title).');
     }