-
Bug
-
Resolution: Fixed
-
Minor
-
4.2.1
-
MOODLE_402_STABLE
-
MOODLE_401_STABLE, MOODLE_402_STABLE, MOODLE_403_STABLE
-
mdl-78650-401-stable
-
mdl-78650-403-stable
-
mdl-78650-master-alt-fix
-
There is an issue to showing the activity in the timeline block.
When an assignment activity is set some particular settings, activity remains in the timeline and show overdue if the activity is after due date.
How to replicate:
1. Create a course.
2. Create a group and enrol 2 students ("Student 1" and "Student 2").
3. Create an assignment activity with following options.
- Set "Yes" to "Require students to click the submit button" in "Submission settings"
- Set "Yes" to "Students submit in groups" in "Group submission settings"
- Set "Do not indicate activity completion" to "Completion tracking" in "Activity completion"
4. Login as "Student 1". Go to dashboard and confirm the assignment in the timeline.
5. Click "Add submission" in the timeline.
6. Upload a file, "Save changes", "Submit assignment", and "Continue" to confirm submission.
7. Back to the dashboard. Confirm the assignment activity is not in the timeline.
8. Login as "Student 2". Go to dashboard and the assignment is in the timeline even other group member submitted the assignment.
I debugged the issue, and found some logics to show the timeline records.
If the activity is completed (has record in mdl_course_modules_completion table), then the activity is not shown.
If the activity is not completed (includes off for "Completion tracking"), check assign_submission records.
If the status of assign_submission is "submitted", then the activity is not shown (means completed).
The issue is when the assignment submits by group and also has "Require students to click the submit button", then the submission of other member of the group doesn't change to "submitted".