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

Users are not unenrolled automatically after enrolment duration

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Duplicate
    • Affects Version/s: 2.1.4
    • Fix Version/s: None
    • Component/s: Enrolments
    • Labels:
    • Testing Instructions:
      Hide

      1. Add an manual enrol instance to course
      2. Enrol an user through it and set the enrolment duration as small as possible
      3. Waiting for the expiration of enrolment (Or change database/system time)
      4. Run cron
      5. The user should be unenrolled

      Show
      1. Add an manual enrol instance to course 2. Enrol an user through it and set the enrolment duration as small as possible 3. Waiting for the expiration of enrolment (Or change database/system time) 4. Run cron 5. The user should be unenrolled
    • Affected Branches:
      MOODLE_21_STABLE

      Description

      http://docs.moodle.org/21/en/Unenrolment says:

      The enrolment duration, which unenrols students after the specified time has elapsed

      But in my site, there are lots of students whose enrolment duration has been expired for several months are not unenolled. The enrol method is manual.

      And I greped 'enrolperiod', found no code using it to judge whether a user should be unenrolled. Am I mistake?

      P.S. My cronjob works well.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              tsala Helen Foster
              Reporter:
              sunner Sunner Sun
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
              Votes:
              4 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: