diff --git a/templates/base/layouts/navigation-menu/layout.js.twig b/templates/base/layouts/navigation-menu/layout.js.twig index 031035b07..01794ca6a 100644 --- a/templates/base/layouts/navigation-menu/layout.js.twig +++ b/templates/base/layouts/navigation-menu/layout.js.twig @@ -1,6 +1,6 @@ $('#{{ oUIBlock.GetId() }}').navigation_menu({ - display_counts: {% if get_config_parameter('display_menus_count') %} true {% else %} false {% endif %} - {%if oUIBlock.GetOrgId()%}, org_id: {{ oUIBlock.GetOrgId()}} {% endif %} + display_counts: {% if get_config_parameter('display_menus_count') %} true {% else %} false {% endif %}, + org_id: {{ oUIBlock.GetOrgId()|json_encode }} }); $('#{{ oUIBlock.GetId() }}').navigation_menu('refreshCounts', null);