[BUGFIX] EXT:form - add renderRenderable ViewHelper for hidden elements 54/51654/2
authorRalf Zimmermann <ralf.zimmermann@tritum.de>
Mon, 13 Feb 2017 12:16:59 +0000 (13:16 +0100)
committerSusanne Moog <susanne.moog@typo3.org>
Mon, 13 Feb 2017 14:23:33 +0000 (15:23 +0100)
* Wrap the hidden form element with the renderRenderable ViewHelper.
* Remove the 'value' viewhelper argument and use the 'property'
  argument instead.

Resolves: #79779
Releases: master
Change-Id: I3a1a7fde0af894dbd95293f890555ed432f6bc18
Reviewed-on: https://review.typo3.org/51654
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Tobi Kretschmann <tobi@tobishome.de>
Tested-by: Tobi Kretschmann <tobi@tobishome.de>
Reviewed-by: Susanne Moog <susanne.moog@typo3.org>
Tested-by: Susanne Moog <susanne.moog@typo3.org>
typo3/sysext/form/Resources/Private/Frontend/Partials/Hidden.html

index 0d4b716..7e46fb0 100644 (file)
@@ -1 +1,4 @@
-<f:form.hidden property="{element.identifier}" id="{element.uniqueIdentifier}" value="{element.properties.value}" />
\ No newline at end of file
+{namespace formvh=TYPO3\CMS\Form\ViewHelpers}
+<formvh:renderRenderable renderable="{element}">
+    <f:form.hidden property="{element.identifier}" id="{element.uniqueIdentifier}" />
+</formvh:renderRenderable>
\ No newline at end of file