[BUGFIX] Add support for target attribute to form viewhelper 73/51973/2
authorSusanne Moog <susanne.moog@typo3.com>
Tue, 7 Mar 2017 07:48:48 +0000 (08:48 +0100)
committerSusanne Moog <susanne.moog@typo3.org>
Wed, 22 Mar 2017 09:27:19 +0000 (10:27 +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
Reviewed-on: https://review.typo3.org/51973
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Susanne Moog <susanne.moog@typo3.org>
Tested-by: Susanne Moog <susanne.moog@typo3.org>
typo3/sysext/fluid/Classes/ViewHelpers/FormViewHelper.php

index 335b87c..7026c76 100644 (file)
@@ -113,6 +113,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('target', 'string', 'Target attribute of the form');
         $this->registerUniversalTagAttributes();
     }