Skip to content

Commit

Permalink
BUGFIX Fixed broken test LeftAndMain caused by createTag being called
Browse files Browse the repository at this point in the history
statically in AssetAdmin, when it shouldn't be
  • Loading branch information
Sean Harvey committed Apr 12, 2012
1 parent 52710eb commit 6b3d890
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion code/controllers/AssetAdmin.php
Expand Up @@ -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',
Expand Down

0 comments on commit 6b3d890

Please sign in to comment.