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

modinfo not set in My Moodle

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • 1.9
    • 1.9
    • Libraries
    • None
    • MOODLE_19_STABLE
    • MOODLE_19_STABLE

      I found this while trying to get overview information to print for a lesson.

      In the my/index.php page, the method get_my_courses() is used to get an array of course objects. These course objects do not get their modinfo field set.

      Later, the course objects are eventually passed to get_all_instances_in_courses() in the modules modname_print_overview(). This method (get_all_instances_in_courses) requires modinfo to be set otherwise it will skip that course resulting in an empty array being returned.

      There are several ways to fix this, I leave that solution up to the developer assigned to the ticket.

            stronk7 Eloy Lafuente (stronk7)
            bushido Mark Nielsen
            Stephen Bourget Stephen Bourget
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

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