From 3685a14f49661c2ccf1d66a4e76c4087186274e7 Mon Sep 17 00:00:00 2001 From: nicolas Date: Fri, 12 May 2017 10:53:07 +0200 Subject: [PATCH 1/3] - fix https://github.com/twigphp/Twig/issues/2336, just need to import macros in all template --- Resources/views/Ticket/show_attachment.html.twig | 1 + 1 file changed, 1 insertion(+) diff --git a/Resources/views/Ticket/show_attachment.html.twig b/Resources/views/Ticket/show_attachment.html.twig index 5798d262..0e671f36 100644 --- a/Resources/views/Ticket/show_attachment.html.twig +++ b/Resources/views/Ticket/show_attachment.html.twig @@ -1,3 +1,4 @@ +{% import 'HackzillaTicketBundle:Macros:macros.html.twig' as macros %} {% if message.attachmentName %}
From 46f9217ca6baa76d53c6f927b7a09fca99f55170 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Mei=C3=9Fner?= Date: Wed, 5 Jun 2019 17:16:30 +0200 Subject: [PATCH 2/3] changed import string for macros --- Resources/views/Ticket/show_attachment.html.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Resources/views/Ticket/show_attachment.html.twig b/Resources/views/Ticket/show_attachment.html.twig index 0e671f36..ca7d0eb7 100644 --- a/Resources/views/Ticket/show_attachment.html.twig +++ b/Resources/views/Ticket/show_attachment.html.twig @@ -1,4 +1,4 @@ -{% import 'HackzillaTicketBundle:Macros:macros.html.twig' as macros %} +{% import '@HackzillaTicket/Macros/macros.html.twig' as macros %} {% if message.attachmentName %}
From 2525c1f65385629b932ed97a8676501caacafec4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Mei=C3=9Fner?= Date: Wed, 5 Jun 2019 17:18:59 +0200 Subject: [PATCH 3/3] changed import of macros in a unified way --- Resources/views/Ticket/show_attachment.html.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Resources/views/Ticket/show_attachment.html.twig b/Resources/views/Ticket/show_attachment.html.twig index ca7d0eb7..f433cf8a 100644 --- a/Resources/views/Ticket/show_attachment.html.twig +++ b/Resources/views/Ticket/show_attachment.html.twig @@ -1,4 +1,4 @@ -{% import '@HackzillaTicket/Macros/macros.html.twig' as macros %} +{% import 'hackzilla_ticket.templates.macros' as macros %} {% if message.attachmentName %}