Skip to content
This repository
Browse code

BUGFIX Fixed broken test LeftAndMain caused by createTag being called

statically in AssetAdmin, when it shouldn't be
  • Loading branch information...
commit 6b3d8904e3a14b869ea975440b8336f5c1e27204 1 parent 52710eb
Sean Harvey authored April 12, 2012

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

  1. 3  code/controllers/AssetAdmin.php
3  code/controllers/AssetAdmin.php
@@ -233,13 +233,14 @@ public function getEditForm($id = null, $fields = null) {
233 233
 			$gridField
234 234
 		));
235 235
 		
  236
+		$treeField = new LiteralField('Tree', '');
236 237
 		// Tree view
237 238
 		$fields->addFieldsToTab('Root.TreeView', array(
238 239
 			clone $actionsComposite,
239 240
 			// TODO Replace with lazy loading on client to avoid performance hit of rendering potentially unused views
240 241
 			new LiteralField(
241 242
 				'Tree',
242  
-				FormField::createTag(
  243
+				$treeField->createTag(
243 244
 					'div', 
244 245
 					array(
245 246
 						'class' => 'cms-tree', 

0 notes on commit 6b3d890

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