mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 12:40:01 +01:00
Merge branch 'MDL-78676-401' of https://github.com/sarjona/moodle into MOODLE_401_STABLE
This commit is contained in:
commit
a80a370e0a
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user