-
Bug
-
Resolution: Fixed
-
Critical
-
3.1.1
-
MOODLE_31_STABLE
-
MOODLE_31_STABLE
-
wip-
MDL-55707-master -
-
3.2 Sprint 5
There are a few things you need for this to happen:
- You need to have more than 100 grade_grades in the course, that is to say there must be at least 100 grades are assigned in the course, this triggers the progress bar to display
- You must have an invalid calculated item
To get an invalid calculation, you need to go to something like the course category and Edit calculation.
- Add IDs for a number of your items, then do the calculation formula (=[[id1]]+[[id2]]).
- Save
- Delete one of the graded items that is included in your formula from the gradebook setup page (not from the formula itself), but remember, we still need over 100 grade_grades.
- Bask in your infinite loop glory.
Without the progress bar, the calculation just fails, and the page will show (and on each page view it will attempt to recalculate, since the calculation never successfully finishes and clears needsupdate). But now if you hit the limit set which triggers the progress bar, on each page you will instead just be shown the progress bar, and can never get past it.
The only workarounds involve manipulating the DB, or at least having direct knowledge of the id of the grade item with the bad calculation...
See forums: https://moodle.org/mod/forum/discuss.php?d=336933