Merge branch 'MDL-78676-master' of https://github.com/sarjona/moodle

This commit is contained in:
Andrew Nicols
2023-07-13 16:49:58 +02:00
committed by Sara Arjona
+1 -1
View File
@@ -145,7 +145,7 @@ class mod_data_mod_form extends moodleform_mod {
* @return bool True if one or more rules is enabled, false if none are.
*/
public function completion_rule_enabled($data) {
return ($data['completionentries'] != 0);
return (!empty($data['completionentriesenabled']) && $data['completionentries'] != 0);
}
/**