mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUG Remove "delete" button from "My Profile" (fixes #8121)
This commit is contained in:
parent
e6bf19928f
commit
b3657147bf
@ -30,7 +30,7 @@ class CMSProfileController extends LeftAndMain {
|
||||
->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);
|
||||
|
Loading…
Reference in New Issue
Block a user