From: skodak Date: Sat, 6 Jan 2007 20:36:31 +0000 (+0000) Subject: can not insert two buttons with the same IS on one page - fixed by custom buttons... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=2c94b1cea6f53b008f44cc7a53df6038d61fb09a;p=moodle.git can not insert two buttons with the same IS on one page - fixed by custom buttons instead of add_action_buttons() --- diff --git a/user/edit_form.php b/user/edit_form.php index fd158dae45..7eed8d1b24 100644 --- a/user/edit_form.php +++ b/user/edit_form.php @@ -239,7 +239,9 @@ class user_edit_form extends moodleform { } - $this->add_action_buttons(false, get_string('updatemyprofile')); + //$this->add_action_buttons(false, get_string('updatemyprofile')); + $mform->addElement('submit', 'submitbutton1', get_string('updatemyprofile')); + $mform->closeHeaderBefore('submitbutton1'); /// Moodle optional fields @@ -324,7 +326,10 @@ class user_edit_form extends moodleform { } /// End of $categories foreach } /// End of $categories if - $this->add_action_buttons(false, get_string('updatemyprofile')); + //$this->add_action_buttons(false, get_string('updatemyprofile')); + $mform->addElement('submit', 'submitbutton2', get_string('updatemyprofile')); + $mform->closeHeaderBefore('submitbutton2'); + } /// End of function