Skip to content

Commit

Permalink
Merge pull request sonata-project#3595 from qsomazzi/fix_tree_actions
Browse files Browse the repository at this point in the history
Display create button on tree view
  • Loading branch information
core23 committed Feb 16, 2016
2 parents ecd83ff + eae0798 commit 0e12021
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Admin/Admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
);
Expand Down

0 comments on commit 0e12021

Please sign in to comment.