mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR Fixed usage of FieldSet->insertFirst() in ModelAdmin, no longer present in FieldList
This commit is contained in:
parent
0bfc0bc645
commit
68a394427d
@ -961,7 +961,7 @@ class ModelAdmin_RecordController extends Controller {
|
||||
|
||||
if($this->currentRecord->canDelete(Member::currentUser())) {
|
||||
if(!$actions->fieldByName('action_doDelete')) {
|
||||
$actions->insertFirst($deleteAction = new FormAction('doDelete', _t('ModelAdmin.DELETE', 'Delete')));
|
||||
$actions->unshift($deleteAction = new FormAction('doDelete', _t('ModelAdmin.DELETE', 'Delete')));
|
||||
}
|
||||
$deleteAction->addExtraClass('delete ss-ui-action-destructive');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user