-
Bug
-
Resolution: Fixed
-
Minor
-
3.9.11, 3.10.8, 3.11.4, 3.11.7, 3.11.8, 4.0.1, 4.0.2, 4.1
-
MOODLE_310_STABLE, MOODLE_311_STABLE, MOODLE_39_STABLE, MOODLE_400_STABLE, MOODLE_401_STABLE
-
MOODLE_311_STABLE, MOODLE_400_STABLE
-
MDL-73215-undef-plagiarismlinks -
If a learner submits an assignsubmission_onlinetext assignment submission, and the submission data is deleted by the admin the empty submission can be viewed but with the error:
Undefined variable: plagiarismlinks in /var/www/moodle/mod/assign/submission/onlinetext/locallib.php on line 483
Steps to reproduce issue:
- Change debug level to DEVELOPER.
- Create a course.
- Enrol a student.
- Add an assignment activity with Submission types: Online text.
- As the student go to the assignment, click Add submission, enter some text and click Save changes.
- As an admin go to the assigment, click View all submissions, select the checkbox for the above student, for With selected... select Remove submission and click Go.
- Click the magnifying glass icon for the student's submission.
Expected results
The submission page with no data. No errors are shown.
Actual results
At the top of the page (possibly hidden under the navbar at the top) is the error "Notice: Undefined variable: plagiarismlinks in /var/www/moodle/mod/assign/submission/onlinetext/locallib.php on line 483". This also appears in the PHP error log.