Moodle 2.4.4
An instructor today caused an issue where an incorrect calculation in a no grade item caused the gradebook Course Total to show 'Error'. So even thought the Grade Item Type was set to 'None' it still used that incorrect calculation in the Course Total
Here is what the instructor did.
- The instructor added a manual grade item.
- Then entered a calculation dependent on other items.
- The instructor then deleted those items in the calculation
- So then the calculation was incorrect and gave errors on both the item and course total
- The instructor then edited the grade item with a Grade Type of 'none'. So this hid the item from the instructor and they could no longer edit the item or calculation.
- Because the item was hidden from the gradebook and the instructor couldn't fix it he couldn't fix the Course Total 'Error'.
To fix the issue I had to figure out the edit url for grade items and enter that 'No Grade' items id with the incorrect calculation and make it a 'Value' grade so it would show in the gradebook again. I then had to fix the calculation or delete it to fix the Course Total 'Error'.
So I'm thinking there are a few ways to solve this issue.
- If we are going to hide 'No Grade' types from the gradebook then they should not be included in any way into the gradebook calculation.
- When deleting items from the gradebook that are used in calculations it should automatically remove the item from the calculation or prompt the user to fix it before deleting. I'm thinking the automatic removal because of the ability to delete assignments you don't want to have to go into the gradebook to fix a calculation first.
- Instead of hiding no grade items from the teachers view. Figure out a way to designate it a 'No Grade' item so instructors can still modify it but it stays hidden from students.
Thoughts Please and then I'll probably make a tracker issue.