Skip to content
This repository
Browse code

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 authored April 04, 2012

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  code/controllers/AssetAdmin.php
2  code/controllers/AssetAdmin.php
@@ -202,7 +202,7 @@ public function getEditForm($id = null, $fields = null) {
202 202
 				$tabs->push($tabDetails = new Tab('DetailsView', _t('AssetAdmin.DetailsView', 'Details')));
203 203
 				$tabDetails->addExtraClass("content-galleryview");
204 204
 				foreach($fields as $field) {
205  
-					$fields->removeByName($field->Name());
  205
+					$fields->removeByName($field->getName());
206 206
 					$tabDetails->push($field);
207 207
 				}
208 208
 			}

0 notes on commit 029f833

Please sign in to comment.
Something went wrong with that request. Please try again.