Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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 halkyon authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  code/controllers/AssetAdmin.php
3  code/controllers/AssetAdmin.php
View
@@ -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',
Please sign in to comment.
Something went wrong with that request. Please try again.