Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 3.1.4, 3.2.5, 3.3.2
-
Component/s: Assignment
-
Labels:
-
Testing Instructions:
-
Affected Branches:MOODLE_31_STABLE, MOODLE_32_STABLE, MOODLE_33_STABLE
-
Fixed Branches:MOODLE_32_STABLE, MOODLE_33_STABLE
-
Pull from Repository:
-
Pull Master Branch:
MDL-58047-34-sortbysubmission -
Pull Master Diff URL:
Description
How to reproduce:
- Create a small course using development tools
- Edit one of the assignments and enable submission (text for example)
- View the gradebook (ex: /mod/assign/view.php?id=XXX&action=grading)
- Order by 'Last modified (submission)' descending (triangle pointing down), it is ok as we have no submissions yet.
- Login as a user and send a submission.
- Go back to view gradebook, last page, it should be there the submission as expected.
- Login as yet another user, go to the submission page BUT DO NOT SUBMIT.
- Go back to view gradebook, last page, the user will be shown there as if it has submitted something. It happens because when he/she visits the submit page it creates a record in the
{assign_submission}
table with status = 'new' and a timemodified.
I would expect it to only consider if status='submitted' as implied by the column name "last modified (submission)".