Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Won't Fix
-
Affects Version/s: 1.5.3
-
Fix Version/s: None
-
Component/s: Exercise
-
Labels:None
-
Environment:All
-
Affected Branches:MOODLE_15_STABLE
Description
Problem:
Grades page in a course is not working at all when specific exercise is created in a course, throwing
Fatal error: Call to undefined function: exercise_get_best_submission_grades() in D:\www\moodle15\mod\exercise\lib.php on line 299 error.
How to reproduce:
1. Create a exercise in a course
1.1 Set Handling of Multiple Submissions: to Use Maximum
1.2 Enter at least one Ammend element
1.3 Submit exercise description
1.4 Move to phase 2 (Allow Student Assessments and Submissions)
2. As a student, submit a file
2.1 Choose a student enroled in the course and login as the student
2.2 Assess yourself
2.3 Submit a file
3. As a teacher, grade the students file in the Exercise
4. Go to Course main page and click on Grades
How to fix:
move function exercise_get_best_submission_grades() from mod/exercise/locallib.php to mod/exercise/lib.php
Moving this to Peter because Ray is no longer with us (RIP)