BUGFIX Fixed broken test LeftAndMain caused by createTag being called

statically in AssetAdmin, when it shouldn't be
This commit is contained in:
Sean Harvey 2012-04-12 13:04:01 +12:00
parent 52710ebd93
commit 6b3d8904e3

View File

@ -233,13 +233,14 @@ JS
$gridField $gridField
)); ));
$treeField = new LiteralField('Tree', '');
// Tree view // Tree view
$fields->addFieldsToTab('Root.TreeView', array( $fields->addFieldsToTab('Root.TreeView', array(
clone $actionsComposite, clone $actionsComposite,
// TODO Replace with lazy loading on client to avoid performance hit of rendering potentially unused views // TODO Replace with lazy loading on client to avoid performance hit of rendering potentially unused views
new LiteralField( new LiteralField(
'Tree', 'Tree',
FormField::createTag( $treeField->createTag(
'div', 'div',
array( array(
'class' => 'cms-tree', 'class' => 'cms-tree',