Permalink
Browse files

BUGFIX Fixed broken test LeftAndMain caused by createTag being called

statically in AssetAdmin, when it shouldn't be
  • Loading branch information...
1 parent 52710eb commit 6b3d8904e3a14b869ea975440b8336f5c1e27204 @halkyon halkyon committed Apr 12, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 code/controllers/AssetAdmin.php
View
3 code/controllers/AssetAdmin.php
@@ -233,13 +233,14 @@ public function getEditForm($id = null, $fields = null) {
$gridField
));
+ $treeField = new LiteralField('Tree', '');
// Tree view
$fields->addFieldsToTab('Root.TreeView', array(
clone $actionsComposite,
// TODO Replace with lazy loading on client to avoid performance hit of rendering potentially unused views
new LiteralField(
'Tree',
- FormField::createTag(
+ $treeField->createTag(
'div',
array(
'class' => 'cms-tree',

0 comments on commit 6b3d890

Please sign in to comment.