Merge pull request #1001 from afranjin/bugfix/#1000-ticket-dependency-confirm-delete

Fix wrong href in ticket dependency
This commit is contained in:
Garret Wassermann 2022-03-11 17:28:39 -05:00 committed by GitHub
commit 36b4b07796
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,7 +7,7 @@
<a href="{% url 'helpdesk:list' %}">{% trans "Tickets" %}</a>
</li>
<li class="breadcrumb-item">
<a href="{% url 'helpdesk:list' %}{{ ticket.id }}/">{{ ticket.queue.slug }}-{{ ticket.id }}</a>
<a href="{{ dependency.ticket.get_absolute_url }}">{{ dependency.ticket.queue.slug }}-{{ dependency.ticket.id }}</a>
</li>
<li class="breadcrumb-item active">{% trans "Delete Ticket Dependency" %}</li>
{% endblock %}
@ -18,7 +18,7 @@
<p>Are you sure you wish to remove the dependency on this ticket?</p>
{% endblocktrans %}
<p><a href='../../'><button class="btn btn-primary btn-lg">{% trans "Don't Delete" %}</button></a></p>
<p><a href='{{ dependency.ticket.get_absolute_url }}'><button class="btn btn-primary btn-lg">{% trans "Don't Delete" %}</button></a></p>
<form method='post' action='./'>
<button class="btn btn-danger" type='submit'>{% trans "Yes, I Understand - Delete" %}</button>