That's good to know, thanks! On Thu, Mar 25, 2010 at 8:22 PM, Michael Sharman <[email protected]> wrote:
> Seems strange to me, but the BeforeSave() method is run when applying > a filter in objectadmin, this is not what I needed (actually it's > never what I want when overriding BeforeSave()) so I added the > following simple workaround in my custom BeforeSave(): > > <cfif structKeyExists(form, "farcryformsubmitbutton") AND > form.farcryformsubmitbutton NEQ "apply filter"> > //Custom code to run when actually saving an object > </cfif> > > <cfreturn super.beforeSave(stProperties = arguments.stProperties, > stFields = arguments.stFields, stFormPost = arguments.stFormPost)> > > Hope that helps someone. > > -- > You received this message cos you are subscribed to "farcry-dev" Google > group. > To post, email: [email protected] > To unsubscribe, email: > [email protected]<farcry-dev%[email protected]> > For more options: http://groups.google.com/group/farcry-dev > -------------------------------- > Follow us on Twitter: http://twitter.com/farcry > > To unsubscribe from this group, send email to farcry-dev+ > unsubscribegooglegroups.com or reply to this email with the words "REMOVE > ME" as the subject. > -- You received this message cos you are subscribed to "farcry-dev" Google group. To post, email: [email protected] To unsubscribe, email: [email protected] For more options: http://groups.google.com/group/farcry-dev -------------------------------- Follow us on Twitter: http://twitter.com/farcry To unsubscribe from this group, send email to farcry-dev+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.
