Ver código fonte

Merge pull request #3595 from qsomazzi/fix_tree_actions

Display create button on tree view
Christian Gripp 9 anos atrás
pai
commit
0e12021c04
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      Admin/Admin.php

+ 1 - 1
Admin/Admin.php

@@ -2971,7 +2971,7 @@ abstract class Admin implements AdminInterface, DomainObjectInterface
     {
         $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(
                 'template' => 'SonataAdminBundle:Button:create_button.html.twig',
             );