When you delete a member and choose to reassign their entries to another member, it fires the save()
method on each entry but passes in NULL values for all the params the save()
method is expecting.
From the docs for a TAB file:
Module_name_tab::save($entry, $values)
Called during a ChannelEntry entity's afterSave event, this allows you to insert data/update data:
When you delete a Member and choose to re-assign their entries to another member, should EE be firing that save()
method?
In my testing, reassigning entries to another member is causing that method to fire, but the $entry
values are being passed as NULL causing unexpected behavior in any add-on that has a TAB file and is not explicitly checking for the existence of those values.
We’ve gotten around this for now by adding this to our TAB file save()
method:
if(!empty($_POST['bulk_action'])) return;
If this is incorrect or may cause issues with other functionality, please let me know.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.