Details
-
Type: Improvement
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 4.3.0-b1
-
Component/s: None
-
Labels:None
Description
See Event Handlers for a list of events that would need to be considered.
Effectively, whenever an event is triggered for a non-add action, and we have an instance of the record, the record should be passed along to the event handler representing it's original state before having just been changed.
For example, when editing a service, the Services::edit event is triggered and includes the service ID (service_id) and the data used to update the service (vars). This task aims to update this to also pass an object representing the original service record prior to being updated (e.g. prior_service). The same behavior should be applied to other events (e.g. Packages::edit, Packages::delete, etc.).