IMS Enterprise Unenrollment

IMS Enterprise Unenrollment

by Matthew Orlando -
Number of replies: 1

Moodle v2.4.4

I've successfully set up the IMS Enterprise plugin, and it is correctly adding users, creating courses, and enrolling users.  However, it seems to be ignoring the "unenrollment" records (where <status>0</status>.  Example below.  I've turned debugging on, and the only message I'm getting is "

Notice:  Undefined property: stdClass::$courseid in /srv/www/htdocs/moodle/enrol/imsenterprise/lib.php on line 610

Any suggestions?

Example:

<membership>
   <sourceid>
      <source>source_name</source>
      <id>course_id</id>
   </sourceid>
   <member>
      <sourceid>
         <source>genesis</source>
         <id>101258</id>
      </sourceid>
      <idtype idtype="1"/>
      <role roletype="01">
         <userid>101258</userid>
         <status>0</status>
      </role>
   </member>
</membership>

Average of ratings: -
In reply to Matthew Orlando

Re: IMS Enterprise Unenrollment

by Matthew Orlando -

Fixed my own problem.  It was a typo in the XML.

<sourceid>  should actually by <sourcedid>