mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
MINOR remove default form actions. Unit tests pass. (from r88065)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.4@96783 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
096bfb2565
commit
141886d675
@ -428,14 +428,6 @@ JS;
|
||||
$actions = $record->getAllCMSActions();
|
||||
} else {
|
||||
$actions = $record->getCMSActions();
|
||||
// add default actions if none are defined
|
||||
if(!$actions || !$actions->Count()) {
|
||||
if($record->canEdit()) {
|
||||
$actions->push(new FormAction('save',_t('CMSMain.SAVE','Save')));
|
||||
$actions->push($deleteAction = new FormAction('delete',_t('CMSMain.DELETE','Delete from the draft site')));
|
||||
$deleteAction->addExtraClass('delete');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Add a default or custom validator.
|
||||
|
Loading…
Reference in New Issue
Block a user