[TYPO3-dev] Extbase: Setting relational field to empty using frontend´
Anders Gissel
invadercyg at gmail.com
Thu Feb 14 14:07:58 CET 2013
Hey y'all,
I'm building an Extbase-extension (6.0.1), and my model has a field that
relates to another table using a simple dropdown. The user can then
select a single value, and all is fine.
However: once the user has selected (and saved) a value, he can't empty
the field again... I've added an empty value to both the frontend
selector and the TCA, but apparently setting an empty value is the same
as selecting nothing at all. Therefore, the only way to empty the field
is to do it through the backend. Selecting a different value works just
fine, but obviously that's not what I'm after.
My question then is: how do I empty the field from the frontend? Once
the data reaches the controller's updateAction() it has already been
processed, so how do I go about it? Can anyone recommend any material on
the subject?
Best regards,
Anders
More information about the TYPO3-dev
mailing list