Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-44365

We should be validating more information in events

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Deferred
    • Icon: Minor Minor
    • None
    • 2.6
    • Events API

      There are events that require certain attributes, for example in their description, that are not validated using the validate_data() function. An example of this in core is the event 'cohort_member_added', where the 'relateduserid' is used in the description, but isn't necessarily set by the event. We should be validating 'other' fields as well if they are used.

      Note: There is no need to validate the 'objectid', as this is done in the base class when the 'objecttable' is set (just pointing this out as I have seen this validated in some core events).

            Unassigned Unassigned
            markn Mark Nelson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.