There's more than one way to do things | |
PerlMonks |
Re: Re: Re: Re: Re: Re: Class::DBI find_or_create method inserts record but $obj->id is undefby jerrygarciuh (Curate) |
on Jan 24, 2004 at 03:51 UTC ( [id://323779]=note: print w/replies, xml ) | Need Help?? |
Perrin, I appreciate your replying but the deletion is being done after the call to find_or_create. For whatever reason when CGI is packaging up the hidden field in the form that sets id='' it does it in a way that Class::DBI sees as other than undef. Deleting the $q->param does not solve this. However, having Template-Toolkit conditionally print the hidden field based on whether id is deined does solve the problem. No param named id unless it is defined. Still, it is odd to me that Class::DBI would have this behavior. Thank you for your attention to my dilemma! Peas and hominy, jg
_____________________________________________________ "The man who grasps principles can successfully select his own methods. The man who tries methods, ignoring principles, is sure to have trouble. ~ Ralph Waldo Emerson
In Section
Seekers of Perl Wisdom
|
|