From 029f83347b5baa981588c46277daab6912d4ae24 Mon Sep 17 00:00:00 2001 From: Normann Lou Date: Wed, 4 Apr 2012 14:31:21 +1200 Subject: [PATCH] BUGFIX: use getName() for FormField object since Name() has been deprecated in SilverStripe 3 --- code/controllers/AssetAdmin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/controllers/AssetAdmin.php b/code/controllers/AssetAdmin.php index 2596e5cb..31be0c69 100644 --- a/code/controllers/AssetAdmin.php +++ b/code/controllers/AssetAdmin.php @@ -202,7 +202,7 @@ JS $tabs->push($tabDetails = new Tab('DetailsView', _t('AssetAdmin.DetailsView', 'Details'))); $tabDetails->addExtraClass("content-galleryview"); foreach($fields as $field) { - $fields->removeByName($field->Name()); + $fields->removeByName($field->getName()); $tabDetails->push($field); } }