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

Assignment notifications disregard extensions granted

    • MOODLE_405_STABLE, MOODLE_500_STABLE
    • MDL-85113-assign-extensions_405
    • MDL-85113-assign-extensions_500
    • MDL-85113-assign-extensions_main
    • Easy
    • Hide
      1. Log in as a teacher.
      2. Create a new course;
      3. Enrol two students (Student1, Student2) in this course.
      4. Ensure students will receive notifications via Web (User menu -> Preferences -> Notification preferences)
      5. Create an assignment activity.
      6. Ensure the assignment is open and available to students.
      7. Set the assignment due date to exactly 7 days in the future.
      8. Navigate to the Submissions tab of the assignment and select Student1.
      9. From the bottom menu click More and then Extend.
      10. Click Extend again in the pop-up window.
      11. On the next screen change the Extension due date to be at least one day later than the main due date of the assignment and then click Save Changes.
      12. Run the scheduled task "Notify user of assignments due in 7 days" manually (Site administration -> Server -> Scheduled tasks) - or wait until cron has run overnight
      13. Log in as Student1 and navigate to the course page.
      14. Verify that Student1 sees the assignment and that the due date is showing the user extension due data, not the main due date.
      15. Verify that Student1 has not received any notification about the assignment being due in 7 days.
      16. Log in as Student2 and navigate to the course page.
      17. Verify that Student2 sees the assignment and that the due date is showing the main due date.
      18. Verify that Student2 has received any notification about the assignment being due in 7 days.

       

      Show
      Log in as a teacher. Create a new course; Enrol two students (Student1, Student2) in this course. Ensure students will receive notifications via Web (User menu -> Preferences -> Notification preferences) Create an assignment activity. Ensure the assignment is open and available to students. Set the assignment due date to exactly 7 days in the future. Navigate to the  Submissions tab of the assignment and select Student1. From the bottom menu click  More  and then  Extend. Click  Extend again in the pop-up window. On the next screen change the  Extension   due date to be at least one day later than the main due date of the assignment and then click Save Changes. Run the scheduled task "Notify user of assignments due in 7 days" manually (Site administration -> Server -> Scheduled tasks) - or wait until cron has run overnight Log in as Student1 and navigate to the course page. Verify that Student1 sees the assignment and that the due date is showing the user extension due data, not the main due date. Verify that Student1 has not received any notification about the assignment being due in 7 days. Log in as Student2 and navigate to the course page. Verify that Student2 sees the assignment and that the due date is showing the main due date. Verify that Student2 has received any notification about the assignment being due in 7 days.  
    • Hide

      Code verified against automated checks.

      Checked MDL-85113 using repository: https://github.com/opitz/moodle

      More information about this report

      Built on: Thu May 15 12:38:44 UTC 2025

      Show
      Code verified against automated checks. Checked MDL-85113 using repository: https://github.com/opitz/moodle MOODLE_405_STABLE (0 errors / 0 warnings) [branch: MDL-85113-assign-extensions_405 | CI Job ] MOODLE_500_STABLE (0 errors / 0 warnings) [branch: MDL-85113-assign-extensions_500 | CI Job ] main (0 errors / 0 warnings) [branch: MDL-85113-assign-extensions_main | CI Job ] More information about this report Built on: Thu May 15 12:38:44 UTC 2025

      In MDL-84327 fixes were applied to account for assignment restrictions or hidden assignments when sending notifications about them.

      However, when a student's submission deadline is changed by granting them an extension, their new due date is disregarded and they still receive notifications related to the main assignment due date.

      This does not happen though when a student's submission deadline is changed through the override functionality. That is likely because the override changes the date in the 'Due date' column of the overridden student, whereas granting an extension just adds the text 'Extension granted until: <date & time>' to their 'Status' column. This could be resolved by making extensions also change the 'Due date' column like the overrides do.

      Affected notifications identified:

      • Assignment due soon notification;
      • Assignment overdue notification;
      • Assignments due in 7 days notification;

      Steps to reproduce:

      1. Log in as a teacher.
      2. Create a new course;
      3. Enrol one student in this course;
      4. Create an assignment activity;
      5. Ensure the assignment is open and available to students;
      6. Set the assignment due date at least 7 days in the future;
      7. Navigate to the Submissions tab of the assignment and select the student;
      8. From the bottom menu click More and then Extend;
      9. Click Extend again in the pop-up window;
      10. On the next screen change the Extension due date to be one day later than the main due date of the assignment and then click Save Changes;
      11. The student will receive the assignment email notifications listed above quoting the assignment main due date rather than the extended due date this student was granted.

            opitz Matthias Opitz
            dragos5436 dragos5436
            Votes:
            6 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:

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