Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…ecated in SilverStripe 3
  • Loading branch information...
commit 029f83347b5baa981588c46277daab6912d4ae24 1 parent a48254a
Normann Lou normann authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  code/controllers/AssetAdmin.php
2  code/controllers/AssetAdmin.php
View
@@ -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);
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.