[BUGFIX] Additional Identity Properties not set on mapping error 02/30502/6
authorAnja Leichsenring <aleichsenring@ab-softlab.de>
Sun, 1 Jun 2014 08:36:24 +0000 (10:36 +0200)
committerMarkus Klein <klein.t3@reelworx.at>
Mon, 3 Nov 2014 17:59:39 +0000 (18:59 +0100)
commit622926a2442a9244a81b89b0e984638092a60bcf
tree162a933c25bcd68b507460918d2a9bbd3f10691a
parentafbad533d115209af0864af0ad49e3cbcbe2f011
[BUGFIX] Additional Identity Properties not set on mapping error

When binding Fluid forms to nested objects, Fluid automatically adds
hidden fields with the identifiers of all affected objects so that
the persistence layer can update all objects correctly.

When a form was redisplayed due to property mapping errors, the
identity fields for the nested sub objects were no longer created.

This change fixes this by making sure all identity fields are rendered
recursively also after property mapping errors.

Backport from #29290
Resolves: #59253
Releases: master
Change-Id: Ib4b2a065d967e87aa42bdc889fef3f0b727b748b
Reviewed-on: http://review.typo3.org/30502
Reviewed-by: Stefan Froemken <froemken@gmail.com>
Tested-by: Stefan Froemken <froemken@gmail.com>
Reviewed-by: Markus Klein <klein.t3@reelworx.at>
Tested-by: Markus Klein <klein.t3@reelworx.at>
typo3/sysext/fluid/Classes/ViewHelpers/Form/AbstractFormFieldViewHelper.php
typo3/sysext/fluid/Tests/Unit/ViewHelpers/Form/AbstractFormFieldViewHelperTest.php