From 67c0037e5d6184f5e2d19e8441c4205509d9bebb Mon Sep 17 00:00:00 2001 From: Dan Marsden Date: Mon, 4 Sep 2017 09:27:29 +1200 Subject: [PATCH] disabledif doesn't support neq condition due to MDL-53848 Fix behat test. --- add_form.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/add_form.php b/add_form.php index 21b4ea1..cda63d3 100644 --- a/add_form.php +++ b/add_form.php @@ -93,7 +93,7 @@ class mod_attendance_add_form extends moodleform { } $select = &$mform->addElement('select', 'groups', get_string('groups', 'group'), $selectgroups); $select->setMultiple(true); - $mform->disabledIf('groups', 'sessiontype', 'neq', mod_attendance_structure::SESSION_GROUP); + $mform->disabledIf('groups', 'sessiontype', 'eq', mod_attendance_structure::SESSION_COMMON); } else { if ($groupmode == VISIBLEGROUPS) { $mform->updateElementAttr($radio, array('disabled' => 'disabled'));