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

Load missing data if required in completion_info::is_enabled()

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.0.4
    • 2.0.3
    • Course completion

      If an instance of the completion_info class is created with only a placeholder course object (e.g. with only 'id' => 2), the is_enabled() function will throw a notice when trying to access the course's "enablecompletion" property. Here is a patch to lazy load that field if it is missing and is needed.

            sry_not4sale Aaron Barnes (Inactive)
            sry_not4sale Aaron Barnes (Inactive)
            Sam Hemelryk Sam Hemelryk
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

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