From 5c1fddd96d013982341dd56f6060e6971d736f81 Mon Sep 17 00:00:00 2001 From: Oliver Date: Sat, 3 Jul 2021 16:28:03 +1000 Subject: [PATCH] JS bug fix --- InvenTree/order/templates/order/so_attachments.html | 2 -- 1 file changed, 2 deletions(-) diff --git a/InvenTree/order/templates/order/so_attachments.html b/InvenTree/order/templates/order/so_attachments.html index 89f09541d1..9c29fe5abe 100644 --- a/InvenTree/order/templates/order/so_attachments.html +++ b/InvenTree/order/templates/order/so_attachments.html @@ -53,8 +53,6 @@ loadAttachmentTable( }); }, onDelete: function(pk) { - var pk = button.attr('pk'); - constructForm(`/api/order/so/attachment/${pk}/`, { method: 'DELETE', confirmMessage: '{% trans "Confirm Delete Operation" %}',