Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit b3657147bff395fa4305bbb0b3ba6cfd0d1fffe1 1 parent e6bf199
@chillu chillu authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  admin/code/CMSProfileController.php
View
2  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);
Please sign in to comment.
Something went wrong with that request. Please try again.