[TYPO3-dev] Re: Extbase: Setting relational field to empty using frontend´

Stefano Cecere scecere at krur.com
Fri Feb 15 19:19:29 CET 2013


Hi Anders

i have the same problem
i explained it (with a solution i found) here 
http://forum.typo3.org/index.php/t/194225/

note : the typo3v4mvc newsgroup is the right place for Extbase/Fluid topics

ciao


On 14/02/13 14:07, Anders Gissel wrote:
> 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


-- 

-- --- ----- -------

Stefano Cecere
KRUR studio - http://krur.com



More information about the TYPO3-dev mailing list