[Catalyst] Question about workflow to handle multiple 'submit' buttons on one form

2011-02-07 Thread will trillich
Catalystry: We have a ticketing system where the managers can add new data and update the form. This uses a normal submit button. But now and then they want to close an incident, so we have a save-and-close submit button as well. One form, two ways to submit. So there's a second page where they

Re: [Catalyst] Question about workflow to handle multiple 'submit' buttons on one form

2011-02-07 Thread Len Jaffe
On Mon, Feb 7, 2011 at 11:41 AM, will trillich will.trill...@serensoft.comwrote: Catalystry: So there's a second page where they fill out some finalization options (with the original data in hidden fields) and there they have a final submit button for the purpose. And they should be able to

Re: [Catalyst] Question about workflow to handle multiple 'submit' buttons on one form

2011-02-07 Thread will trillich
Dang, this is really quite spiffy. Thanks for the idea! On Mon, Feb 7, 2011 at 1:42 PM, Francisco Obispo fobi...@isc.org wrote: Well, what I would do, is keep the underlying 'save' and 'close' methods as private: sub save : Private { my ($self,$c)=@_; # your save code goes here }