danmarsden/moodle-local_recompletion

Modifying a course completion date isn't reflected when querying the Moodle API endpoint

Opened this issue · 1 comments

Moodle 4.1.x
Apache2
PHP 8.1

After modifying a course completion date via the "Modify Course Completions Dates" page, the Moodle API endpoint (core_completion_get_course_completion_status) returns the old date rather than the modified date.

The Moodle API returns the date stored in prefix_course_completion_crit_compl, which isn't modified when you use the "Modify Course Completion Dates" page.

Thanks David! - That feels a little like it's the external api returning the wrong value to me, - particularly as it's a webservice call not used in the core Moodle code, but we could try to see if we can update the criteria complete record timecompletion record as well - pull requests welcome :-)