Browse Source

Fixed bug with help buttons for different group modes in add_form.php

MOODLE_23_STABLE
Artem Andreev 14 years ago
parent
commit
e7bba36af0
  1. 4
      add_form.php

4
add_form.php

@ -22,13 +22,13 @@ class mod_attforblock_add_form extends moodleform {
case NOGROUPS:
$mform->addElement('static', 'sessiontypedescription', get_string('sessiontype', 'attforblock'),
get_string('commonsession', 'attforblock'));
$mform->setHelpButton('sessiontypedescription', array('sessiontypes', get_string('sessiontype','attforblock'), 'attforblock'));
$mform->addHelpButton('sessiontypedescription', 'sessiontype', 'attforblock');
$mform->addElement('hidden', 'sessiontype', attforblock::SESSION_COMMON);
break;
case SEPARATEGROUPS:
$mform->addElement('static', 'sessiontypedescription', get_string('sessiontype', 'attforblock'),
get_string('groupsession', 'attforblock'));
$mform->setHelpButton('sessiontypedescription', array('sessiontypes', get_string('sessiontype','attforblock'), 'attforblock'));
$mform->addHelpButton('sessiontypedescription', 'sessiontype', 'attforblock');
$mform->addElement('hidden', 'sessiontype', attforblock::SESSION_GROUP);
break;
case VISIBLEGROUPS:

Loading…
Cancel
Save