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

Category Undefined in IMS Enterprise

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.4.7, 2.5.3
    • 2.2.1, 2.2.2
    • Enrolments
    • MOODLE_22_STABLE
    • MOODLE_24_STABLE, MOODLE_25_STABLE
    • MDL-32592-master
    • Hide
      1. Download the attached IMS enterprise enrolment file and put it in your moodledata directory
      2. Go to Home / Site administration / Plugins / Enrolments
      3. Enable the IMS enterprise enrolment plugin
      4. In the settings, provide the path to the file you uploaded in File location
      5. Save settings
      6. Go to the link 'perform an IMS Enterprise import right now'
      7. VERIFY: the ims enrollment works ok
      8. VERIFY: no debugging is experienced
      Show
      Download the attached IMS enterprise enrolment file and put it in your moodledata directory Go to Home / Site administration / Plugins / Enrolments Enable the IMS enterprise enrolment plugin In the settings, provide the path to the file you uploaded in File location Save settings Go to the link 'perform an IMS Enterprise import right now' VERIFY: the ims enrollment works ok VERIFY: no debugging is experienced
    • 2
    • BACKEND Sprint 5

      Hi

      At line 396 in enrol/imsenterprise/lib.php the script checks if the category-string is longer than 0. However, if the category is empty this will and does result in an error.

      Notice: Undefined property: stdClass::$category in /workspace/moodle2.0/enrol/imsenterprise/lib.php on line 396.

      It is not an serious matter, but a small bug which is easily fixed by adding a different if statement:

      if(!empty($group->category)).

      I can provide a patch if necessarily.

      Best regards

      Henrik

            poltawski Dan Poltawski
            henrikthorn Henrik Thorn
            Mark Nelson Mark Nelson
            Marina Glancy Marina Glancy
            Damyon Wiese Damyon Wiese
            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.