Browse Source

disabledif doesn't support neq condition due to MDL-53848 Fix behat test.

MOODLE_34_STABLE
Dan Marsden 7 years ago
parent
commit
67c0037e5d
  1. 2
      add_form.php

2
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 = &$mform->addElement('select', 'groups', get_string('groups', 'group'), $selectgroups);
$select->setMultiple(true); $select->setMultiple(true);
$mform->disabledIf('groups', 'sessiontype', 'neq', mod_attendance_structure::SESSION_GROUP); $mform->disabledIf('groups', 'sessiontype', 'eq', mod_attendance_structure::SESSION_COMMON);
} else { } else {
if ($groupmode == VISIBLEGROUPS) { if ($groupmode == VISIBLEGROUPS) {
$mform->updateElementAttr($radio, array('disabled' => 'disabled')); $mform->updateElementAttr($radio, array('disabled' => 'disabled'));

Loading…
Cancel
Save