From 01da57f0cf1b1784fd699fd997021b85a1acad07 Mon Sep 17 00:00:00 2001 From: James Newlands Date: Sat, 5 May 2018 21:22:47 +1000 Subject: [PATCH] If part has no category, page rendered an extra curly brace in JS that caused syntax error. --- InvenTree/part/templates/part/detail.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/InvenTree/part/templates/part/detail.html b/InvenTree/part/templates/part/detail.html index bdd7863e3c..8838abba84 100644 --- a/InvenTree/part/templates/part/detail.html +++ b/InvenTree/part/templates/part/detail.html @@ -100,7 +100,7 @@ launchDeleteForm("#modal-delete", "{% url 'part-delete' part.id %}", { - redirect: {% if part.category %}"{% url 'category-detail' part.category.id %}"{% else %}"{% url 'part-index' %}"}{% endif %} + redirect: {% if part.category %}"{% url 'category-detail' part.category.id %}"{% else %}"{% url 'part-index' %}"{% endif %} }); }); {% endblock %}