mirrored from git://git.moodle.org/moodle.git
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDL-71659 completion: Consider modules without grade_item incomplete
Activity modules may not have the associated grade_item created yet. It used to throw fatal error in that case - even when trying to view the course or edit the activity. So there was no easy way to recover from this situation. The patch is based on reasoning that an activity without grade item is same as activity without any grades. And as such it is considered incomplete. A new unit test is added to cover this specific scenario. The existing unit test is modified and it does not expect the exception any more. There does not seem to be any good reason why this situation should be exceptional.
- Loading branch information
Showing
2 changed files
with
39 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters