From d37bd9d306cb51ba3712cd9c3008e3b8bccd6bb5 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Thu, 8 Mar 2012 16:34:14 +0100 Subject: [PATCH] MINOR Using renamed GridFieldDeleteAction and GridFieldEditAction --- code/Company.php | 2 +- code/GridFieldTestPage.php | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/code/Company.php b/code/Company.php index 3a5e235..b217e92 100644 --- a/code/Company.php +++ b/code/Company.php @@ -42,7 +42,7 @@ class Company extends DataObject { $config->addComponent(new GridFieldDefaultColumns()); $config->addComponent(new GridFieldSortableHeader()); $config->addComponent(new GridFieldPaginator()); - $config->addComponent(new GridFieldAction_Edit()); + $config->addComponent(new GridFieldDeleteAction()); $config->addComponent(new GridFieldRelationDelete()); $config->addComponent(new GridFieldPopupForms()); diff --git a/code/GridFieldTestPage.php b/code/GridFieldTestPage.php index 642a475..f583deb 100644 --- a/code/GridFieldTestPage.php +++ b/code/GridFieldTestPage.php @@ -36,8 +36,8 @@ class GridFieldTestPage extends Page { $config->addComponent(new GridFieldSortableHeader()); $config->addComponent(new GridFieldPaginator); $config->addComponent(new GridFieldFilter()); - $config->addComponent(new GridFieldAction_Delete()); - $config->addComponent(new GridFieldAction_Edit()); + $config->addComponent(new GridFieldDeleteAction()); + $config->addComponent(new GridFieldEditAction()); $config->addComponent($forms = new GridFieldPopupForms()); $grid = new GridField('Companies', 'Companies', new DataList('Company'),$config); $fields->addFieldToTab('Root.NoRelation', $grid); @@ -47,8 +47,8 @@ class GridFieldTestPage extends Page { $config->addComponent(new GridFieldSortableHeader()); $config->addComponent(new GridFieldPaginator); $config->addComponent(new GridFieldFilter()); - $config->addComponent(new GridFieldAction_Delete()); - $config->addComponent(new GridFieldAction_Edit()); + $config->addComponent(new GridFieldDeleteAction()); + $config->addComponent(new GridFieldEditAction()); $config->addComponent(new GridFieldRelationAdd('Name')); $grid = new GridField('HasManyCompanies', 'HasManyCompanies', new DataList('Company'),$config); $fields->addFieldToTab('Root.HasMany', $grid); @@ -58,8 +58,8 @@ class GridFieldTestPage extends Page { $config->addComponent(new GridFieldSortableHeader()); $config->addComponent(new GridFieldPaginator); $config->addComponent(new GridFieldFilter()); - $config->addComponent(new GridFieldAction_Delete()); - $config->addComponent(new GridFieldAction_Edit()); + $config->addComponent(new GridFieldDeleteAction()); + $config->addComponent(new GridFieldEditAction()); $config->addComponent(new GridFieldRelationAdd('Name')); $grid = new GridField('ManyManyCompanies', 'ManyManyCompanies', new DataList('Company'),$config); $fields->addFieldToTab('Root.ManyMany', $grid); @@ -91,8 +91,8 @@ class GridFieldTestPage_Controller extends Page_Controller { $config->addComponent(new GridFieldSortableHeader()); $config->addComponent(new GridFieldPaginator); $config->addComponent(new GridFieldFilter()); - $config->addComponent(new GridFieldAction_Delete()); - $config->addComponent(new GridFieldAction_Edit()); + $config->addComponent(new GridFieldDeleteAction()); + $config->addComponent(new GridFieldEditAction()); $config->addComponent(new GridFieldPopupForms()); $grid = new GridField('Companies', 'Companies', new DataList('Company'),$config);