Navigation Menu

Skip to content

Commit

Permalink
BUG Remove "delete" button from "My Profile" (fixes #8121)
Browse files Browse the repository at this point in the history
  • Loading branch information
chillu committed Dec 15, 2012
1 parent e6bf199 commit b365714
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin/code/CMSProfileController.php
Expand Up @@ -30,7 +30,7 @@ public function getEditForm($id = null, $fields = null) {
->setAttribute('data-icon', 'accept') ->setAttribute('data-icon', 'accept')
->setUseButtonTag(true) ->setUseButtonTag(true)
); );
$form->Actions()->removeByName('delete'); $form->Actions()->removeByName('action_delete');
$form->setValidator(new Member_Validator()); $form->setValidator(new Member_Validator());
$form->setTemplate('Form'); $form->setTemplate('Form');
$form->setAttribute('data-pjax-fragment', null); $form->setAttribute('data-pjax-fragment', null);
Expand Down

0 comments on commit b365714

Please sign in to comment.