[Dashboard groups][compiler pass] fixed default value of item.
@@ -92,7 +92,12 @@ class AddDependencyCallsCompilerPass implements CompilerPassInterface
);
}
- $groupDefaults[$resolvedGroupName]['items'][] = $id;
+ $groupDefaults[$resolvedGroupName]['items'][] = array(
+ 'admin' => $id,
+ 'label' => '',
+ 'route' => '',
+ 'route_params' => array()
+ );
@@ -878,6 +878,7 @@ class SonataAdminExtensionTest extends \PHPUnit_Framework_TestCase
"bar" => array(
"label" => "foo",
"icon" => '<i class="fa fa-edit"></i>',
+ "label_catalogue" => 'SonataAdminBundle',
"items" => array(
array(
"admin" => "",