-
Bug
-
Resolution: Fixed
-
Minor
-
2.4.7, 2.5.3, 2.6
-
Any
-
MOODLE_24_STABLE, MOODLE_25_STABLE, MOODLE_26_STABLE
-
MOODLE_24_STABLE, MOODLE_25_STABLE, MOODLE_26_STABLE
-
MDL-43373-master -
Easy
-
On the enrolled users page, inactive enrolments (e.g. expired enrolments, those that have not yet begun, or those with a disabled enrolment method) are normally displayed with the 'dimmed_text' class. This works fine in most cases, however if there is both a start date and an end date defined for the enrolment, and the current time is outside of those start and end times, the enrolment is displayed like a normal active enrolment.
This seems to be due to a logic error requiring the current date to be BOTH before the start date AND after the expiry date in order for the enrolment to be considered inactive. Obviously this could never be the case.