Skip to content

Commit d0494c0

Browse files
committed
bugfix #159 Fix references to "hackzilla_ticket.templates.*" parameters (phansys)
This PR was merged into the 3.x branch. Discussion ---------- |Q |A | |--- |---| |Branch |3.x| |Bug fix? |yes| |New feature? |no | |BC breaks? |no | |Deprecations?|no | |Tests pass? |yes| |Fixed tickets|n/a| |License |MIT| |Doc PR |n/a| Commits ------- a18a3e2 Fix references to "hackzilla_ticket.templates.*" parameters
2 parents 47ae565 + a18a3e2 commit d0494c0

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

Resources/views/Ticket/index.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{% extends '@HackzillaTicket/layout.html.twig' %}
2-
{% import 'hackzilla_ticket.templates.macros' as macros %}
2+
{% import hackzilla_ticket.templates.macros as macros %}
33

44
{% block hackzilla_ticket_content -%}
55
<h1>{{ 'HEADING_TICKET_LIST'|trans }}</h1>

Resources/views/Ticket/new.html.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
</div>
1515

1616
{% if form.messages|length == 0 %}
17-
{% include 'hackzilla_ticket.templates.prototype' with {'form': form.messages.vars.prototype} %}
17+
{% include hackzilla_ticket.templates.prototype with {'form': form.messages.vars.prototype} %}
1818
{% else %}
19-
{% include 'hackzilla_ticket.templates.prototype' with {'form': form.messages.__name__} %}
19+
{% include hackzilla_ticket.templates.prototype with {'form': form.messages.__name__} %}
2020
{% endif %}
2121

2222
{{ form_rest(form) }}

Resources/views/Ticket/show.html.twig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{% extends '@HackzillaTicket/layout.html.twig' %}
2-
{% import '@HackzillaTicket/Macros/macros.html.twig' as macros %}
2+
{% import hackzilla_ticket.templates.macros as macros %}
33

44
{% block hackzilla_ticket_content -%}
55

@@ -51,7 +51,7 @@
5151
<div class="panel-body">
5252
{{ message.message|nl2br }}
5353
{% if(hasTicketFeature('attachment')) %}
54-
{{ include('@HackzillaTicket/Ticket/show_attachment.html.twig', {'message': message}) }}
54+
{% include hackzilla_ticket.templates.show_attachment with {'message': message} %}
5555
{% endif %}
5656
</div>
5757
</div>
@@ -66,7 +66,7 @@
6666
{% if form is defined %}
6767
<div class="well well-sm">
6868
{{ form_start(form, {'method': 'POST', 'action': path('hackzilla_ticket_reply', {'ticketId': ticket.id})}) }}
69-
{% include 'hackzilla_ticket.templates.prototype' with {'form': form} %}
69+
{% include hackzilla_ticket.templates.prototype with {'form': form} %}
7070

7171
{{ form_rest(form) }}
7272

Resources/views/Ticket/show_attachment.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{% import 'hackzilla_ticket.templates.macros' as macros %}
1+
{% import hackzilla_ticket.templates.macros as macros %}
22
{% if message.attachmentName %}
33
<br>
44
<div class="ticket_attachment">

0 commit comments

Comments
 (0)