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

Assignment notification helper incorrectly checks for assignment submissions

XMLWordPrintable

    • 2
    • Team Hedgehog 2024 Sprint 4.3, Team Hedgehog 2025 Sprint 1.0

      • get_users_within_assignment
      • send_due_soon_notification_to_user
      • send_overdue_notification_to_user

      • send_due_digest_notification_to_user

      These methods inside mod/assign/classes/notification_helper.php check for user submissions by seeing if a record is returned from get_user_submission.

      It was assumed that no record means no submission. That is not correct as I found out using these steps:

      1. Create a course with an activity
      2. Enrol a student into the course
      3. Open up the mdl_assign_submission table and observe no entry for the student yet
      4. Log in as the student and click on the assignment (don't submit or anything else)
      5. Refresh your mdl_assign_submission table and observe the new entry
      6. This can give a false sense of completion

            david.woloszyn@moodle.com David Woloszyn
            david.woloszyn@moodle.com David Woloszyn
            Meirza Meirza
            Huong Nguyen Huong Nguyen
            Ron Carl Alfon Yu Ron Carl Alfon Yu
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 day, 1 hour, 17 minutes
                1d 1h 17m

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