From 6c56ce5cc28339df7b5f63972266894468509d45 Mon Sep 17 00:00:00 2001
From: Ralf Zimmermann <ralf.zimmermann@tritum.de>
Date: Mon, 13 Feb 2017 13:16:59 +0100
Subject: [PATCH] [BUGFIX] EXT:form - add renderRenderable ViewHelper for
 hidden elements

* 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>
---
 .../form/Resources/Private/Frontend/Partials/Hidden.html     | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/typo3/sysext/form/Resources/Private/Frontend/Partials/Hidden.html b/typo3/sysext/form/Resources/Private/Frontend/Partials/Hidden.html
index 0d4b716824f7..7e46fb01b236 100644
--- a/typo3/sysext/form/Resources/Private/Frontend/Partials/Hidden.html
+++ b/typo3/sysext/form/Resources/Private/Frontend/Partials/Hidden.html
@@ -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
-- 
GitLab