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: case NOGROUPS:
$mform->addElement('static', 'sessiontypedescription', get_string('sessiontype', 'attforblock'), $mform->addElement('static', 'sessiontypedescription', get_string('sessiontype', 'attforblock'),
get_string('commonsession', '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); $mform->addElement('hidden', 'sessiontype', attforblock::SESSION_COMMON);
break; break;
case SEPARATEGROUPS: case SEPARATEGROUPS:
$mform->addElement('static', 'sessiontypedescription', get_string('sessiontype', 'attforblock'), $mform->addElement('static', 'sessiontypedescription', get_string('sessiontype', 'attforblock'),
get_string('groupsession', '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); $mform->addElement('hidden', 'sessiontype', attforblock::SESSION_GROUP);
break; break;
case VISIBLEGROUPS: case VISIBLEGROUPS:

Loading…
Cancel
Save