Hi all
A teacher has complained of "missing grades". The problem is that the grade report has no participants although the participants list of the course shows 13 students. Found that the "Course end date" was set to 11 November. Changed the "Course end date" to 15 November:

Still no change.
The participants (in the participants list) are marked "Not current":

A typical setting (gear wheel) shows:

The odd thing is, I can unset "Enrolment ends". But when I save and come back, it has not changed.
When I unset both "Enrolment starts" and "Enrolment ends" and comes back, I have this (1970!):

Then I unset the "Enrolment ends" (disable), save and comeback - it is still enabled!
What is happening?
As you see in the screenshots the students were enrolled manually. Here is the manual enrollment setting:

There must be a bug somewhere!
Moodle 4.1.14 (Build: 20241007). PHP 7.4
