From 2c94b1cea6f53b008f44cc7a53df6038d61fb09a Mon Sep 17 00:00:00 2001 From: skodak Date: Sat, 6 Jan 2007 20:36:31 +0000 Subject: [PATCH] can not insert two buttons with the same IS on one page - fixed by custom buttons instead of add_action_buttons() --- user/edit_form.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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 -- 2.39.5