[Vtigercrm-developers] aborting a save in an event handler

Adam Heinz amh at metricwise.net
Tue Oct 16 07:42:31 PDT 2012


On Tue, Oct 16, 2012 at 10:34 AM, Alan Bell <alan.bell at libertus.co.uk> wrote:
> Any suggestions on how to do a graceful abort of a save during the event
> handler?

Well, first realize that you have two types of aborted save action to
recover from:  DetailViewAjax single field save and Save full entity
save.  For the former, it looks like you'll need to output some sort
of :#:ERR special error format.  For the latter, it seems easy enough
to steal the header redirect from the base of the corresponding
Save.php file, but that doesn't provide any error messaging.


More information about the vtigercrm-developers mailing list