You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[v4.1.1] [Moodle 4.4.6] [PHP 8.1] course/defaultcompletion.php - Form validation error when checking and saving with custom completion rule "submit"
#626
Open
danowar2k opened this issue
Mar 3, 2025
· 0 comments
Moodle 4.4 requires custom completion rules to have a suffix "_$modname".
When Moodle checks if automatic completion is enabled here: https://github.com/moodle/moodle/blob/b132ff1ed83dbe243909b8b121304ab20c0f069c/completion/classes/form/form_trait.php#L403
mod_questionnaire checks the given $data object only for the rule name without the suffix:
moodle-mod_questionnaire/mod_form.php
Lines 222 to 224 in 666310d
while earlier it did create the form elements with the suffix:
moodle-mod_questionnaire/mod_form.php
Lines 211 to 214 in 666310d
This leads to the bug that the custom completion rule can't be activated and therefore not be used (at least as a default)
The text was updated successfully, but these errors were encountered: