Browse Source

Merge pull request #98 from barrysspace/add_session_error_MDL27

Fix #73 - Debug warnings when adding session for "Separate groups" if…
MOODLE_27_STABLE
Dan Marsden 10 years ago
parent
commit
b0b98426fd
  1. 4
      add_form.php

4
add_form.php

@ -91,7 +91,9 @@ class mod_attendance_add_form extends moodleform {
$select->setMultiple(true);
$mform->disabledIf('groups', 'sessiontype', 'neq', attendance::SESSION_GROUP);
} else {
$mform->updateElementAttr($radio, array('disabled'=>'disabled'));
if ($groupmode == VISIBLEGROUPS) {
$mform->updateElementAttr($radio, array('disabled'=>'disabled'));
}
$mform->addElement('static', 'groups', get_string('groups', 'group'),
get_string('nogroups', 'attendance'));
if ($groupmode == SEPARATEGROUPS) {

Loading…
Cancel
Save