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

Course completion updated event should set related user ID

XMLWordPrintable

    • MOODLE_26_STABLE
    • Easy

      Currently when this event is fired, it sets the 'relateduserid' as part of the 'other' array. This should probably set it to the event property of relateduserid.

      EG: update it like so:

              $event = \core\event\course_module_completion_updated::create(
                  array('objectid' => $data->id,
                      'userid' => $USER->id,
                      'relateduserid' => $data->userid,
                      'context' => $cmcontext,
                      'courseid' => $coursecontext->instanceid,
                      'other' => array('relateduserid' => $data->userid)
                      )
                  );
      
      

      Probably have to leave the related user ID in the other part for backwards compatibility.

            Unassigned Unassigned
            bushido Mark Nielsen (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

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