drachels / moodle-mod_mootyper

4 stars 18 forks source link

Error in new instances with "Activity completion" configured #118

Closed davidherney closed 9 months ago

davidherney commented 9 months ago

Hi...

An error is displayed in the course if any completion conditions are set when the activity is created.

Debug info: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1 SELECT * FROM mdl_mootyper_exercises WHERE lesson= [array ( )] Error code: dmlreadexception

Context: Moodle 4.1 DB: MariaDB 10.6.12 PHP: 7.4 Activity completion: Completion tracking "Students can manually mark the activity as completed"

Saludos

davidherney commented 9 months ago

Solution proposed in #119

davidherney commented 9 months ago

Ready!!