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

Setting manual enrolment default duration over 1 year is reset in the enrolment forms

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      1. Configure the manual enrolment method in a course, and set its duration to anything greater than 365 days. (example, 500 days)
      2. Go to "Course administration > Enrolled users" and click the "Enrol users" button
      3. Confirm that the Enrolment duration matches the default value set at step 1
      4. Enrol a user, and confirm that the user is enrolled for the expected number of days
      5. Navigate to "Course administration > Enrolment methods" and click on the icon "Enrol users" on the same line as "Manual enrolment"
      6. Confirm that the form displays the right default value for Enrolment duration
      7. Enrol a user, and confirm that the user is enrolled for the expected number of days
      8. Repeat with values that do not equate to an integer number of days, e.g. 31 hours, 2000 minutes, ...
      9. Repeat without any default duration, in which case "Unlimited" should be the default
      Show
      Configure the manual enrolment method in a course, and set its duration to anything greater than 365 days. (example, 500 days) Go to "Course administration > Enrolled users" and click the "Enrol users" button Confirm that the Enrolment duration matches the default value set at step 1 Enrol a user, and confirm that the user is enrolled for the expected number of days Navigate to "Course administration > Enrolment methods" and click on the icon "Enrol users" on the same line as "Manual enrolment" Confirm that the form displays the right default value for Enrolment duration Enrol a user, and confirm that the user is enrolled for the expected number of days Repeat with values that do not equate to an integer number of days, e.g. 31 hours, 2000 minutes, ... Repeat without any default duration, in which case "Unlimited" should be the default
    • Difficulty:
      Easy
    • Affected Branches:
      MOODLE_27_STABLE, MOODLE_28_STABLE, MOODLE_30_STABLE
    • Fixed Branches:
      MOODLE_30_STABLE, MOODLE_31_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-48248-master
    • Sprint:
      3.2 Sprint 1

      Description

      Expiry date of enrolment not showing up when manual enrolment is set to long terms (eg, 3 years)

      1. In course administration: Users > Enrolment methods > manual enrolments
      2. Enrolment duration enabled and set to 156 weeks (3 years)
      3. Users then enrolled via Users> Enrolled users and pop up box.
      4. No expiry date shown on list of enrolled users, had to be manually changed for each user.
      5. Same result when enrolled via Users > Enrolment methods > manual enrolments and enrol users icon used.
      6. Same result when enrolment period set to 1095 days (3 years)
      7. No issue when shorter time frames (2-3 days or weeks)

        Attachments

        1. enrolduration1.png
          enrolduration1.png
          27 kB
        2. enrolduration2.png
          enrolduration2.png
          20 kB
        3. enrolduration3.png
          enrolduration3.png
          17 kB
        4. enrolduration4.png
          enrolduration4.png
          38 kB
        5. js_help.patch
          1.0 kB
        6. MDL-48248-partialfix.patch
          2 kB

          Activity

            People

            Assignee:
            fred Frédéric Massart
            Reporter:
            magratj Meg James
            Peer reviewer:
            cameron1729
            Integrator:
            David Monllaó
            Tester:
            Marina Glancy
            Participants:
            Component watchers:
            Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
            Votes:
            2 Vote for this issue
            Watchers:
            9 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              11/Jul/16