Browse files

BUGFIX: use getName() for FormField object since Name() has been depr…

…ecated in SilverStripe 3
  • Loading branch information...
1 parent a48254a commit 029f83347b5baa981588c46277daab6912d4ae24 @normann normann committed Apr 4, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 code/controllers/AssetAdmin.php
View
2 code/controllers/AssetAdmin.php
@@ -202,7 +202,7 @@ public function getEditForm($id = null, $fields = null) {
$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);
}
}

0 comments on commit 029f833

Please sign in to comment.