-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
4.4.9
In rather uncommon situations, a teacher submitting an Assignment for a student may experience a "Call to undefined method assign::view_error_page()" exception. Additionally, notices produced within calls to assign::process_submit_other_for_grading(), assign::process_submit_for_grading(), and assign::submit_for_grading() are not propagated up for display to the user because $notices parameters to those functions are not defined as call-by-reference.
To reproduce:
- Add an Assignment activity with 'Require students to click the submit button' set to Yes.
- Edit the submission for a student, add a file. The submission should now have a Draft status.
- In the grading table, from the Status action menu for the draft submission, open in a new tab with the 'Prevent submission changes' option.
- Still on the grading table tab as in step 3, from the same submission's Status action menu, choose the 'Submit for grading' option.
- Observe the exception: Exception - Call to undefined method assign::view_error_page()