Mass Update Plugin and Edited By / Edited Date Fields

Topics related to AppGini plugins/add-ons go here.
Post Reply
elgaucho
Posts: 18
Joined: 2020-07-15 14:37

Mass Update Plugin and Edited By / Edited Date Fields

Post by elgaucho » 2025-08-28 12:54

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 :)

saymaad
AppGini Super Hero
AppGini Super Hero
Posts: 56
Joined: 2024-06-03 16:17

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

Post by saymaad » 2025-08-28 14:25

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.

elgaucho
Posts: 18
Joined: 2020-07-15 14:37

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

Post by elgaucho » 2025-08-29 07:03

much appreciated saymaad! :)

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

Post Reply