Browse Source

Merge pull request #78 from barrysspace/nogroups_add_session_error

Fix #73 - Debug warnings when adding session for "Separate groups" if no...
MOODLE_28_STABLE
Dan Marsden 10 years ago
parent
commit
a9befaa464
  1. 2
      add_form.php

2
add_form.php

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

Loading…
Cancel
Save