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

Deleting "Miscellaneous" category broke the ability to use IMS Enterprise to create courses

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.1, 2.4.6, 2.5.2
    • Fix Version/s: 2.4.7, 2.5.3
    • Component/s: Enrolments
    • Labels:
    • Testing Instructions:
      Hide

      2.5 and master:

      1. Run phpunit tests

      2.4:

      1. Download the attached IMS enterprise enrolment file and put it in your moodledata directory
      2. Delete the 'Miscelaneous category' in your site.
      3. VERIFY: that going to /course/category.php?id=1 returns 'Unknown category'
      4. Go to Home / Site administration / Plugins / Enrolments
      5. Enable the IMS enterprise enrolment plugin
      6. In the settings, provide the path to the file you uploaded in File location
      7. Ensure 'Create new (hidden) course categories if not found in Moodle' is disabled
      8. Ensure 'Create new (hidden) courses if not found in Moodle' is enabled
      9. Save settings
      10. Go to the link 'perform an IMS Enterprise import right now'
      11. VERIFY: the IMS enrolment works ok
      12. VERIFY: You have a new course in your Moodle called 'MOODLE104'
      13. VERIFY: no debugging is experienced
      Show
      2.5 and master: Run phpunit tests 2.4: Download the attached IMS enterprise enrolment file and put it in your moodledata directory Delete the 'Miscelaneous category' in your site. VERIFY: that going to /course/category.php?id=1 returns 'Unknown category' 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 Ensure 'Create new (hidden) course categories if not found in Moodle' is disabled Ensure 'Create new (hidden) courses if not found in Moodle' is enabled Save settings Go to the link 'perform an IMS Enterprise import right now' VERIFY: the IMS enrolment works ok VERIFY: You have a new course in your Moodle called 'MOODLE104' VERIFY: no debugging is experienced
    • Affected Branches:
      MOODLE_22_STABLE, MOODLE_24_STABLE, MOODLE_25_STABLE
    • Fixed Branches:
      MOODLE_24_STABLE, MOODLE_25_STABLE
    • Pull Master Branch:
      MDL-32570-master
    • Story Points (Obsolete):
      2
    • Sprint:
      BACKEND Sprint 5

      Description

      We deleted the "miscellaneous" category in Moodle 2.1 and ran our IMS Enterprise script. No courses were created. The incident sounds similar to http://tracker.moodle.org/browse/MDL-21470 and this posting http://moodle.org/mod/forum/discuss.php?d=200639

      If we remove the one section in the script that is really a term, but has the same tag as a course with no category specified, then all of the other courses are created just fine. When we created the "miscellaneous" category again then the script runs without a problem. An empty course with the name "Spring 2012" (which is the name of our category) is created in the "Miscellaneous" category. The real courses are then created in the "Spring 2012" category.

      I don't know if it matters but we are on PHP Version 5.3.5

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    11/Nov/13