From c3b2bb038075f343aaab47a9939319f34c72b689 Mon Sep 17 00:00:00 2001 From: Oliver Date: Fri, 17 Mar 2023 09:50:02 +1100 Subject: [PATCH] Fix button callback logic (#4502) --- InvenTree/stock/templates/stock/item.html | 2 -- 1 file changed, 2 deletions(-) diff --git a/InvenTree/stock/templates/stock/item.html b/InvenTree/stock/templates/stock/item.html index 15e905f96e..3bf9799c56 100644 --- a/InvenTree/stock/templates/stock/item.html +++ b/InvenTree/stock/templates/stock/item.html @@ -259,11 +259,9 @@ $("#test-result-table").bootstrapTable("refresh"); } - {% if item.has_test_reports %} $("#test-report").click(function() { printTestReports([{{ item.pk }}]); }); - {% endif %} {% if user.is_staff %} $("#delete-test-results").click(function() {