AnsweredAssumed Answered

redirect after delete - Sugar 7

Question asked by Mike Solomon on Jul 11, 2014
Latest reply on Jul 28, 2017 by Jason Eggers
When I delete a record I want todo a redirect

In Sugar 6.5 this was easy I just created an after delete logic hook with a redirect

SugarApplication::redirect("index.php?module=zz_vat_codes&action=DetailView&record=$bean->zz_vat_codes_id");

This doesnt work in 7

The logic hook gets called but a message pops up saying do I want to navigate away from the page and if I say I do I get a javascript error

The sugar developer manual say you can use this http://support.sugarcrm.com/02_Documentation/04_Sugar_Developer/Sugar_Developer_Guide_7.2/70_API/Cla... but I've had no luck with it

Has anyone managed this?


Outcomes