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

Remote enrolment sync ->course creation->category doesn't check against idnumber but the internal id

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a bug
    • Icon: Minor Minor
    • None
    • 2.2.3
    • Enrolments
    • None
    • MOODLE_22_STABLE

      I'm trying to sync courses via the external db enrollment plugin to moodle. The courses should automatically be put in the right categories.

      My external database holds a code like VIE_8, but I tried also numerical values like 8.
      The responding category has set its "Category ID number" to VIE_8, too.

      When I now try to sync via enrol/database/cli/sync.php I get for many courses the following error:
      error: invalid category id, can not create course

      Some courses are created, BUT matched to the wrong categories. If my "Category ID number" is 8, it matches the course to course_categories.id with the id 8 instead of course_categories.idnumber

      I think it is because enrol/database/lib.php works with the "idnumber" field and the course/database/lib.php works with "id"

            skodak Petr Skoda
            nancyf Nancy F
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

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