can not insert two buttons with the same IS on one page - fixed by custom buttons instead of add_action_buttons()

This commit is contained in:
skodak
2007-01-06 20:36:31 +00:00
parent 72f46d119b
commit 2c94b1cea6
+7 -2
View File
@@ -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