-
Bug
-
Resolution: Fixed
-
Major
-
3.6
-
MOODLE_36_STABLE
-
MOODLE_36_STABLE
-
MDL-64092-master -
- Login as Teacher, add an assignment with a due date within 14 days back from now.
- In the assignment settings add a past cutoff date which is "younger" than the due date.
- Login as student, go to Dashboard Timeline, set Filter to "Overdue" or to 'All".
- Find the assignment set in Steps 1-2, and click on the link. An error screen will popup with info like this (with Developer debugging set on):
error/nopermission
More information about this error
Debug info:
Error code: nopermission
$a contents:
Stack trace:
-
- line 494 of \lib\setuplib.php: moodle_exception thrown
- line 4512 of \mod\assign\locallib.php: call to print_error()
- line 589 of \mod\assign\locallib.php: call to assign->view_edit_submission_page()
- line 55 of \mod\assign\view.php: call to assign->view()
- The problem concerns both sort orders - By dates and By courses.
I propose that assignments with past cut-off dates be completely removed from Timeline listings - UNLESS a student has a *current* group or user override date ("extension") set in the assignment. This is like e.g. quiz closing dates & overrides operate.
(A related question I would have is why specifically in Assignment's case the student is taken directly to the edit submission page and not to the Assignment information page - which, as far as I have been able to establish, is the case with all the other activity types. The Timeline links direct to the activity pages simply.)
FINAL NOTE: I have labelled this as major because any teacher who uses cutoff dates within 13 or so days after the due date will find this bug VERY annoying (students will be clicking and seeing errors.). This can become a highly frequent grievance soon.
- blocks
-
MDLQA-12846 CLONE - Assignments with various due dates appear correctly in the Timeline block
-
- Passed
-