From e7bba36af04efb6dec4c4973a536ee42e3aade63 Mon Sep 17 00:00:00 2001 From: Artem Andreev Date: Sat, 16 Jul 2011 17:00:48 +0400 Subject: [PATCH] Fixed bug with help buttons for different group modes in add_form.php --- add_form.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/add_form.php b/add_form.php index 81dc82c..5a0378f 100644 --- a/add_form.php +++ b/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: