mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
Issue #1150: Removed Save and Delete buttons from regular edit form.
This commit is contained in:
parent
7f1f615634
commit
02fcf6429b
@ -294,9 +294,9 @@ JS
|
||||
$actions = $form->Actions();
|
||||
$saveBtn = $actions->fieldByName('action_save');
|
||||
$deleteBtn = $actions->fieldByName('action_delete');
|
||||
$actions->removeByName('action_save');
|
||||
$actions->removeByName('action_delete');
|
||||
if(($saveBtn || $deleteBtn) && $fields->fieldByName('Root.DetailsView')) {
|
||||
$actions->removeByName('action_save');
|
||||
$actions->removeByName('action_delete');
|
||||
$fields->addFieldToTab(
|
||||
'Root.DetailsView',
|
||||
CompositeField::create($saveBtn,$deleteBtn)->addExtraClass('Actions')
|
||||
|
Loading…
Reference in New Issue
Block a user