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

modinfo missing in get_my_courses

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 1.8.3, 1.9
    • 1.8.1
    • Libraries
    • None
    • Any
    • Any
    • MOODLE_18_STABLE
    • MOODLE_18_STABLE, MOODLE_19_STABLE

      When you go to the My Moodle page, it shows a list of the courses you're in, but only the titles. If you have a high enough error_reporting level it will also show complains from the get_all_instances_in_courses function (in lib/datalib.php) about the 'modinfo' attribute missing from the course object. The reason for this is that the get_my_courses function (in lib/datalib.php also) doesn't get the modinfo attribute by default.

      The fix is trivial, just add 'modinfo' somewhere in $d_fields in get_my_courses. In CVS right now, it's on line 689. I've included a patch to do it too.

      Then other relevant data will show up on the My Moddle page to.

            stronk7 Eloy Lafuente (stronk7)
            trick Alan Trick
            Nobody Nobody
            Votes:
            1 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.