Hi,
I have an after_save logic hook that works well at redirecting a record back to EditView after being saved.
Only problem is, when I make a change to a record in list view with mass updateā¦it then takes me to that record which I do not want at all!
Is there any criteria I can make an if statement out of that would make sure the logic hook only fires when in edit view of a record?
Thanks
Will
2
Hi there,
You could check which view you are editing the record from? Or check if the record is being mass updated and if so donāt fire.
In terms of code, Iāve not got the knowledge to inform you how/where you would make these changes.
Thanks,
Will.
Well thatās what Iām after, how do I check the view or if itās from mass update in the if statement?
Iāve tried if ($view == EditView) but that didnāt work.
Hi,
Request should have
$_REQUEST[āmassupdateā] == true and
$_REQUEST[āactionā] == massupdate
Where does the $_REQUEST==true bit go?
Iāve tried: if ($_REQUEST==āmassupdateā)
but that doesnāt work?
I did it with:
$_REQUEST[āmassupdateā]
Hi ,
Sorry, some how post do not saved properly.
I mean condition should be like ā¦
$_REQUEST['massupdate'] == 'true' && $_REQUEST['action'] == 'MassUpdate'