[Catalyst] "update_from_form" and empty fields

David Storrs dstorrs at dstorrs.com
Fri Nov 18 20:05:14 CET 2005


On Nov 18, 2005, at 1:44 PM, Ken Youens-Clark wrote:

> Hi,
>
> I'm using "$class->update_from_form( $c->form )" to pass through my  
> form submission to my Class::DBI model.  This works great except  
> when I'm trying to put an empty string in place of some value that  
> was there before (that is, I want to get rid of a field's value).   
> Any suggestions or workarounds?
>
> ky

I am not using CDBI, and I'm not familiar with its update_from_form,  
but can you simply call $class->update_from_form( $c->form ), then  
assign undef to the relevant fields?

--Dks



More information about the Catalyst mailing list