Permalink
Browse files

MINOR Fixed usage of FieldSet->insertFirst() in ModelAdmin, no longer…

… present in FieldList
  • Loading branch information...
1 parent 0bfc0bc commit 68a394427d32db8c58408efcbc1e630b2c0a997d @chillu chillu committed Dec 18, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 admin/code/ModelAdmin.php
@@ -961,7 +961,7 @@ public function EditForm() {
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');
}

0 comments on commit 68a3944

Please sign in to comment.