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

Users are not unenrolled automatically after enrolment duration

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Critical Critical
    • None
    • 2.1.4
    • Enrolments
    • MOODLE_21_STABLE
    • 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

      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.

            tsala Helen Foster
            sunner Sunner Sun (Inactive)
            Votes:
            4 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

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