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

modinfo missing in get_my_courses

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.8.1
    • Fix Version/s: 1.8.3, 1.9
    • Component/s: Libraries
    • Labels:
      None
    • Environment:
      Any
    • Database:
      Any
    • Affected Branches:
      MOODLE_18_STABLE
    • Fixed Branches:
      MOODLE_18_STABLE, MOODLE_19_STABLE

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  11/Oct/07