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

User unenrollment not working with IMS Enterprise

    XMLWordPrintable

Details

    • MOODLE_27_STABLE, MOODLE_28_STABLE
    • MOODLE_28_STABLE, MOODLE_29_STABLE
    • MDL-50092_master
    • Hide
      1. Download the attached .zip file
      2. Enable IMS enterprise enrolment, you have to enable the following in your IMS Enterprise settings:
        • createnewusers
        • imsdeleteusers
        • createnewcategories
        • imsunenrol
        • createnewcourses
      3. In the same imsenterprise setting page, set imsfilelocation to 1- ImportationMoodle-test-create.xml (inside the attached zip) and save changes.
      4. In lower part of the same settings page, you will find a link to preform an import
      5. Check that a TEST-IMS course category, a TEST-IMS-CREATION course, a John Doe user are created and John Doe is enrolled in the course
      6. Back in the imsenterprise settings page, set imsfilelocation to 2- ImportationMoodle-test-unenroll.xml (inside the attached zip) and save changes.
      7. In lower part of the same settings page, you will find a link to preform an import
      8. Check that the user has been unenrolled from the course
      9. Back in the imsenterprise settings page, set imsfilelocation to 3- ImportationMoodle-test-delete.xml (inside the attached zip) and save changes.
      10. In lower part of the same settings page, you will find a link to preform an import
      11. Check that the user has been deleted from the site and that you receive no error
      Show
      Download the attached .zip file Enable IMS enterprise enrolment, you have to enable the following in your IMS Enterprise settings: createnewusers imsdeleteusers createnewcategories imsunenrol createnewcourses In the same imsenterprise setting page, set imsfilelocation to 1- ImportationMoodle-test-create.xml (inside the attached zip) and save changes. In lower part of the same settings page, you will find a link to preform an import Check that a TEST-IMS course category, a TEST-IMS-CREATION course, a John Doe user are created and John Doe is enrolled in the course Back in the imsenterprise settings page, set imsfilelocation to 2- ImportationMoodle-test-unenroll.xml (inside the attached zip) and save changes. In lower part of the same settings page, you will find a link to preform an import Check that the user has been unenrolled from the course Back in the imsenterprise settings page, set imsfilelocation to 3- ImportationMoodle-test-delete.xml (inside the attached zip) and save changes. In lower part of the same settings page, you will find a link to preform an import Check that the user has been deleted from the site and that you receive no error

    Description

      There is an error in code in /imsenterprise/lib.php that prevent users unenrollment since commit https://github.com/moodle/moodle/blob/295e4fa8f49cab5ab5f17dfc235d6039b615c571/enrol/imsenterprise/lib.php

      In function process_person_tag, there is an extra space after 'deleted' (around line 468):

      $params = array('username' => $person->username, 'mnethostid' => $CFG->mnet_localhost_id, 'deleted ' => 0);

      and it should be:

      $params = array('username' => $person->username, 'mnethostid' => $CFG->mnet_localhost_id, 'deleted' => 0);

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jackdaniels JD
              David Monllaó David Monllaó
              Dan Poltawski Dan Poltawski
              Rajesh Taneja Rajesh Taneja
              David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                6/Jul/15