Permalink
Browse files

BUG Remove "delete" button from "My Profile" (fixes #8121)

  • Loading branch information...
1 parent e6bf199 commit b3657147bff395fa4305bbb0b3ba6cfd0d1fffe1 @chillu chillu committed Dec 15, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 admin/code/CMSProfileController.php
@@ -30,7 +30,7 @@ public function getEditForm($id = null, $fields = null) {
->setAttribute('data-icon', 'accept')
->setUseButtonTag(true)
);
- $form->Actions()->removeByName('delete');
+ $form->Actions()->removeByName('action_delete');
$form->setValidator(new Member_Validator());
$form->setTemplate('Form');
$form->setAttribute('data-pjax-fragment', null);

0 comments on commit b365714

Please sign in to comment.