-
Bug
-
Resolution: Fixed
-
Minor
-
4.0
-
MOODLE_400_STABLE
-
MOODLE_400_STABLE
-
MDL-74064-master -
-
0
-
HQ Team International CIH2-220, HQ Team International CIH2-221, HQ Team International CIH2-222
When a teacher deletes a student submission, the submission isn't deleted from the database. If the assign has a time limit, the submission's timestarted is kept so the "time remaining" will use the previous submission time instead of the new one.
How to reproduce:
- As admin, go to "Site administration > Plugins > Activity modules > Assignment settings" and enable "Enable timed assignments".
- As teacher, create a new assignment with time limit enabled: Availability > Time limit. E.g. you can set it to 30 minutes.
- Enrol a student in the course.
- Login as the student and open the assign.
- Add a new submission and submit it (depending on the assign settings it will be submitted automatically once you save it).
- As teacher, open the assign and click "View all submissions".
- Search the student and click "Edit > Remove submission".
- As the student, open the assign. Check that the time remaining starts counting from the first time you started the assign, it wasn't resetted when the submission was deleted.
EDIT: It seems setting timestarted as NULL in the assign_submission database table isn't enough. When I do it manually in a local site then the timer is ok and displays the right time. But when the student submits the assignment, the message displayed in "Time remaining" is still using the previous time instead of the new one. E.g. in my case it says that I submitted the assign 3 days late when I submitted it early, because the original submission was created 3 days ago.
- is a regression caused by
-
MDL-68913 Assign - Per attempt timing
- Closed