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

The course module completion updated event is sometimes triggered twice

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      1. Visit <yoursite>/admin/settings.php?section=managelogging and enable the 'Standard log' and disable the 'Legacy log'.
      2. Visit <yoursite>/admin/settings.php?section=optionalsubsystems and enable completion tracking.
      3. Visit a course and enable completion tracking.
      4. Create an activity that has 'Completion tracking' set to 'Show activity as complete when conditions are met' and check 'Require view'.
      5. Enrol a user into a course.
      6. Visit the course as the student and view the activity.
      7. As an administration visit "<yoursite>/report/log/index.php" and view the 'Site logs'.
      8. Ensure there is only one 'Course module completion updated' event for that user.
      Show
      Visit <yoursite>/admin/settings.php?section=managelogging and enable the 'Standard log' and disable the 'Legacy log'. Visit <yoursite>/admin/settings.php?section=optionalsubsystems and enable completion tracking. Visit a course and enable completion tracking. Create an activity that has 'Completion tracking' set to 'Show activity as complete when conditions are met' and check 'Require view'. Enrol a user into a course. Visit the course as the student and view the activity. As an administration visit "<yoursite>/report/log/index.php" and view the 'Site logs'. Ensure there is only one 'Course module completion updated' event for that user.
    • Affected Branches:
      MOODLE_27_STABLE

      Description

      Two events are triggered when updating the course completion state.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            markn Mark Nelson
            Participants:
            Component watchers:
            Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated: