-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
4.1.6, 4.2.3, 4.3
-
MOODLE_401_STABLE, MOODLE_402_STABLE, MOODLE_403_STABLE
-
MDL-80018-master
-
The assign::save_user_extension() method checks that the extension being given is not before the due date but it doesn't take into account overrides.
The user interface for giving extensions appears to deal with this elsewhere, as extensions can be given correctly in the situation where the default due date is long in the future, but a user has an override to a previous date and we try to give them an extension to a date between the two.
The method doesn't work as expected when called on its own though (see the unit test in the patch).
There are actually two separate bugs in the method, but I don't see any point in trying to address them separately:
- An assign instance is retrieved without update_effective_access() being called so overrides are ignored
- The user id is not passed to assign::get_instance() so the assignment instance is the one for the user giving the extension, not the user receiving the extension
- has been marked as being related by
-
MDL-78984 Inconsistent Override Behavior for 'assign | enabletimelimit' Option
-
- Closed
-