[BUGFIX] Add support for target attribute to form viewhelper 71/51971/2
authorSusanne Moog <susanne.moog@typo3.com>
Tue, 7 Mar 2017 07:48:48 +0000 (08:48 +0100)
committerSusanne Moog <susanne.moog@typo3.org>
Tue, 7 Mar 2017 08:56:41 +0000 (09:56 +0100)
<f:form> now supports setting target="" as attribute.

Change-Id: Id6bd5f136b3ca6a4083f08780796b408ceaf0116
Releases: master,7.6
Resolves: #80159
Reviewed-on: https://review.typo3.org/51971
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Joerg Boesche <typo3@joergboesche.de>
Tested-by: Joerg Boesche <typo3@joergboesche.de>
Reviewed-by: Mathias Schreiber <mathias.schreiber@typo3.com>
Tested-by: Mathias Schreiber <mathias.schreiber@typo3.com>
typo3/sysext/fluid/Classes/ViewHelpers/FormViewHelper.php

index e8db124..d7ae76b 100644 (file)
@@ -127,6 +127,7 @@ class FormViewHelper extends \TYPO3\CMS\Fluid\ViewHelpers\Form\AbstractFormViewH
         $this->registerTagAttribute('name', 'string', 'Name of form');
         $this->registerTagAttribute('onreset', 'string', 'JavaScript: On reset of the form');
         $this->registerTagAttribute('onsubmit', 'string', 'JavaScript: On submit of the form');
         $this->registerTagAttribute('name', 'string', 'Name of form');
         $this->registerTagAttribute('onreset', 'string', 'JavaScript: On reset of the form');
         $this->registerTagAttribute('onsubmit', 'string', 'JavaScript: On submit of the form');
+        $this->registerTagAttribute('target', 'string', 'Target attribute of the form');
         $this->registerUniversalTagAttributes();
     }
 
         $this->registerUniversalTagAttributes();
     }