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

In the Parent course of a meta linked course, a user remains in the list of participants even after all of their roles have been removed.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • 2.2
    • 2.1.1, 2.1.2
    • Enrolments
    • Windows Server 2008 R2, patched to date, SQL 2008 R2, patched to date. PHP 5.3.6 NTS with FastCGI on IIS 7.5
    • Microsoft SQL
    • MOODLE_21_STABLE
    • MOODLE_22_STABLE
    • w42_MDL-29688_m22_enrol
    • Hide

      1/ test enrol/database reactivation of accounts
      2/ set up ext db adn manual accounts in one course
      3/ create new course and meta link it to first course
      4/ manually change enrol status and tweak external db and watch if the status is updated properly in the linked meta course
      5/ SQL edit the user_enrolments table - modify status flag and execute cron (maybe better to call enrol_meta_sync() from test script
      6/ verify the user_enrolments table is fixed after cron execution

      Show
      1/ test enrol/database reactivation of accounts 2/ set up ext db adn manual accounts in one course 3/ create new course and meta link it to first course 4/ manually change enrol status and tweak external db and watch if the status is updated properly in the linked meta course 5/ SQL edit the user_enrolments table - modify status flag and execute cron (maybe better to call enrol_meta_sync() from test script 6/ verify the user_enrolments table is fixed after cron execution

      Normally, when all of a user's roles are removed from a course, they no longer appear in the Participants list in that course. In the child courses of a Meta linked course, the child courses seem to properly follow this same behavior.

      In the Parent course, however, this is not the case. The user properly reflects the removal of roles in the Parent course ("Course Administration > Enrolled Users"), but still shows in the Participants portion of the course, even after all of their roles have been removed.

      Replication steps:

      1. Create two child courses and a parent course, then add the child courses to the parent courses as meta linked enrollment courses.
      2. We're using the database enrollment plugin to add users to the Student role of the child courses.
      3. In the configuration of the database enrollment plug, we have the unenrollment behavior set to "disable course enrolement and remove roles".
      4. In the configuration of the meta linked course enrollment plugin, we do not have any roles set to not synchronize, i.d. all roles are synchronized.
      5. A user drops the course and is removed from the course in the external enrollment database.

      Expected Behavior: All roles are removed for the user in the child course and the parent course, and removed from the list of participants in the child course and parent course.

      Actual Behavior: All roles are removed for the user in the child course and the parent course, and removed from the list of participants in the child course BUT NOT the parent course.

            skodak Petr Skoda
            boyedav David Boyer
            Sam Hemelryk Sam Hemelryk
            Rossiani Wijaya Rossiani Wijaya
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

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