by Onno Schuit.
Hi core devs,
Moodle version 4.1.2+ (Build: 20230406) has a syntax error in the SQL on line 234 of /enrol/lti/classes/local/ltiadvantage/task/sync_grades.php:
ON {c.id} = e.courseid
This should be:
ON c.id = e.courseid
(Curly brackets deleted).
This syntax error impedes the proper synchronization of grades in LTI. It also also present in 4.1.4 (and presumably all versions in between 4.1.2 and 4.1.4, but I haven't checked).
(And yes, I should report this in the tracker, but it's telling me "Dear Moodler, before creating a new issue you need to demonstrate that you have searched among the existing issues to see if it's already been filed. Please find a similar issue from among the open issues and either start watching it or vote for it." - which kinda creates a chicken - egg problem for me since there is no existing issue which addresses this problem.)