浏览代码

Display create button on tree view

Quentin Somazzi 9 年之前
父节点
当前提交
eae0798548
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Admin/Admin.php

+ 1 - 1
Admin/Admin.php

@@ -2971,7 +2971,7 @@ abstract class Admin implements AdminInterface, DomainObjectInterface
     {
     {
         $list = array();
         $list = array();
 
 
-        if (in_array($action, array('show', 'edit', 'delete', 'list', 'batch'))) {
+        if (in_array($action, array('tree', 'show', 'edit', 'delete', 'list', 'batch'))) {
             $list['create'] = array(
             $list['create'] = array(
                 'template' => 'SonataAdminBundle:Button:create_button.html.twig',
                 'template' => 'SonataAdminBundle:Button:create_button.html.twig',
             );
             );