[html-formfu] Validate DBIx::Class unique constraints

Erez Schatz moonbuzz at gmail.com
Mon Dec 6 12:14:43 GMT 2010


On 12/06/2010 01:22 PM, Tim Rayner wrote:
>>>
>>> Hi,
>>>
>>> I've been using just a single form for both add and edit, using the
>>> self_stash_key option from H::F::C::DBIC::Unique. The idea is that you
>>> put the DBIC row object being edited onto the Catalyst stash and then
>>> name that stash key in the form config. The uniqueness constraint will
>>> ignore this one object if it's on the stash. 

>> btw, it looks like the object needs to be on the form's stash, not the
>> Catalyst stash.
> 
> You're quite correct, my mistake.


Thanks to both, I'll get cracking on this solution

-- 
Erez

Observations, not opinions.



More information about the HTML-FormFu mailing list