[TYPO3-mvc] Fluid: form.select view helper and empty default item
Laurent Foulloy
yolf.typo3 at orange.fr
Sat Aug 7 14:31:23 CEST 2010
Hi Bastian,
Thanks for your message. Using an empty string generates the same
problem as with a zero value. If you look at the class
Tx_Extbase_Property_Mapper the method findObjectByUid() is called when
$propertyValue['__identity'] is set (see the transformToObject()
method). It's the case when a 1:n relation is used. The method cannot
return any valid record when the uid is not in the table. Of course it
the case when uid = 0 or uid = ''.
Best regards
Laurent
Bastian Waidelich a écrit :
> Have you tried to set the value to an empty string as well?
> <option value="">- empty -</option>
More information about the TYPO3-project-typo3v4mvc
mailing list