From eae0798548e01dde6915b565559937d243c6da83 Mon Sep 17 00:00:00 2001 From: Quentin Somazzi Date: Tue, 16 Feb 2016 16:13:41 +0100 Subject: [PATCH] Display create button on tree view --- Admin/Admin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Admin/Admin.php b/Admin/Admin.php index 14d15a537a..0f0e52c7e0 100644 --- a/Admin/Admin.php +++ b/Admin/Admin.php @@ -2971,7 +2971,7 @@ public function configureActionButtons($action, $object = null) { $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', );