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

Can get dirty read from get_course after a update_course call

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Minor Minor
    • None
    • 2.5.4
    • Course
    • MOODLE_25_STABLE

      This is more of an edge case than anything else, but possible:

      1. $COURSE global is set to course X.
      2. Call update_course() on course X.
      3. Custom code is listening to the course_updated event.
      4. That custom code calls get_course(X). This ends up being a dirty read because get_course will read from $COURSE which hasn't been updated.

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

              Created:
              Updated:
              Resolved:

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