Page 1 of 1

Mass Update Plugin and Edited By / Edited Date Fields

Posted: 2025-08-28 12:54
by elgaucho
Has anyone had any experience with the Mass Update plugin, and it updating audit fields?

I have a table with Status, Edited_By, Edited_Date.

I have a mass update function to change the status in bulk for records.

My users just reported to me that the edited by and edited date don't update when I do this via mass_update.

am i going to need to go into the hooks and customise the mass update code to also update these other values via some scripting.

Is there an expectation that this use case should work in the Mass Update plugin?

I will have an explore, but I'm sure others must have seen something similar.
Thanks :)

Re: Mass Update Plugin and Edited By / Edited Date Fields

Posted: 2025-08-28 14:25
by saymaad
Yes, this is the normal behavior of the Mass Update plugin (at least up to version 1.8):
  • Mass update doesn't affect AppGini’s built-in update timestamp. That field is updated only through individual record edits, not bulk operations via the plugin.
  • Since you mentioned you're using custom audit fields (Edited_By, Edited_Date) in your table, these are likely handled through your own hooks, such as before_update or after_update.
  • If that's the case, then yes, you can make Mass Update trigger your hooks, but you need to explicitly enable this in the Mass Update plugin settings. In the plugin interface, at the bottom of the command update modal dialog, there's a checkbox: “Trigger update hooks (don’t check this option if the field you are updating is a hidden field)”. Make sure this is checked, otherwise, your hooks won't run, and those audit fields won't be updated.

Re: Mass Update Plugin and Edited By / Edited Date Fields

Posted: 2025-08-29 07:03
by elgaucho
much appreciated saymaad! :)

I take note of the setting, and will check how to have this triggered!