From dbff7766d41aa82b420ca470cc120f00520477e1 Mon Sep 17 00:00:00 2001 From: GitProdEnv Date: Thu, 8 Feb 2018 11:02:14 +0100 Subject: [PATCH] Add required parameters to the Route generation According to the documentation we link to a specific supplier contact. In the custom action {% set path = ... %} the additional id parameter is missing. An exception has been thrown during the rendering of a template ("Some mandatory parameters are missing ("id") to generate a URL for route "app_admin_supplier_show"."). --- .../bundles/SyliusGridBundle/custom_action.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/components_and_bundles/bundles/SyliusGridBundle/custom_action.rst b/docs/components_and_bundles/bundles/SyliusGridBundle/custom_action.rst index e6b83dd6984..828f0fdaf47 100644 --- a/docs/components_and_bundles/bundles/SyliusGridBundle/custom_action.rst +++ b/docs/components_and_bundles/bundles/SyliusGridBundle/custom_action.rst @@ -11,7 +11,7 @@ In the template we will specify the button's icon to be ``mail`` and its colour {% import '@SyliusUi/Macro/buttons.html.twig' as buttons %} - {% set path = options.link.url|default(path(options.link.route)) %} + {% set path = options.link.url|default(path(options.link.route, options.link.parameters)) %} {{ buttons.default(path, action.label, null, 'mail', 'purple') }}