Uploaded image for project: 'Blesta Core'
  1. Blesta Core
  2. CORE-2528

Update events to pass old record state to handlers

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

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            jonathan Jonathan Reissmueller
            Reporter:
            tyson Tyson Phillips (Inactive)
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Fix Release Date:
              15/Jun/18

              Time Tracking

              Estimated:
              Original Estimate - Not Specified
              Not Specified
              Remaining:
              Remaining Estimate - 0 minutes
              0m
              Logged:
              Time Spent - 2 hours, 22 minutes
              2h 22m

                Agile