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

End date is not correct for manual enrolments

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      Set up

      1. Login as admin or teacher.
      2. Configure a course and remove the end date.

      Testing scenario 1

      1. Go to the Participants page.
      2. Manually enrol a user in a course using the Enrol users button.
      3. Search for a user to enrol, set the duration to 180 days and save.
      4. Access to the "Enrolment details" of the enrolled user (by clicking the  icon).
        • CHECK the end date is 180 days from now.

      Testing scenario 2

      1. Go to the Participants page.
      2. Access to Manual enrolments configuration page, enable "Default enrolment duration" and set to 100 days.
      3. Return to Participants page.
      4. Manually enrol a user in a course using the Enrol users button.
      5. Search for a user to enrol and save.
      6. Access to the "Enrolment details" of the enrolled user (by clicking the  icon).
        • CHECK the end date is 100 days from now.
      Show
      Set up Login as admin or teacher. Configure a course and remove the end date. Testing scenario 1 Go to the Participants page. Manually enrol a user in a course using the Enrol users button. Search for a user to enrol, set the duration to 180 days and save. Access to the "Enrolment details" of the enrolled user (by clicking the  icon). CHECK the end date is 180 days from now. Testing scenario 2 Go to the Participants page. Access to Manual enrolments configuration page, enable "Default enrolment duration" and set to 100 days. Return to Participants page. Manually enrol a user in a course using the  Enrol users  button. Search for a user to enrol and save. Access to the "Enrolment details" of the enrolled user (by clicking the   icon). CHECK the end date is 100 days from now.
    • Affected Branches:
      MOODLE_34_STABLE, MOODLE_35_STABLE
    • Fixed Branches:
      MOODLE_34_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-61249-master

      Description

      When a user is manually enrolled in a course and the course has no end date and the user is supposed to expire in a certain number of days, the year is not set right for the end date.  The end date is 1900.

        Attachments

        1. Confirmed Scenario1.PNG
          19 kB
          Gladys Basiana
        2. Confirmed Scenario2.PNG
          17 kB
          Gladys Basiana
        3. Scenario1_Setting.PNG
          4 kB
          Gladys Basiana
        4. Scenario2_Setting.PNG
          4 kB
          Gladys Basiana
        5. Screen Shot 2018-02-26 at 10.35.27 am.png
          40 kB
          Mark Nelson

          Issue Links

            Activity

              People

              • Votes:
                2 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  19/Mar/18

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 hour
                  1h