[BUGFIX] FormEngine: Fix placeholder traversal for select type relations 40/44440/3
authorMorton Jonuschat <m.jonuschat@mojocode.de>
Sat, 31 Oct 2015 15:20:15 +0000 (16:20 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sat, 31 Oct 2015 17:54:24 +0000 (18:54 +0100)
commitbeda47e806c3a0216df957b7dc93912cb998dfb1
tree8c6019078e0aefafc02e167e88a1a1812849abb2
parent372f40b680cfa9a352003fe862adb3fe7b2fb3a7
[BUGFIX] FormEngine: Fix placeholder traversal for select type relations

When creating a new record that resolves the placeholder from a related
record via a select type field empty values get filtered out. Otherwise
an exception gets raised as 0 is not a positive integer.

Resolves: #70146
Releases: master
Change-Id: I2e49380afed40df160db7e911d3128e6664f33d0
Reviewed-on: https://review.typo3.org/44440
Reviewed-by: Sebastian Fischer <typo3@evoweb.de>
Tested-by: Sebastian Fischer <typo3@evoweb.de>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/backend/Classes/Form/FormDataProvider/TcaInputPlaceholders.php
typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaInputPlaceholdersTest.php