From 80b10c62f3143de9a17f75b8c542b7aa40cb94d5 Mon Sep 17 00:00:00 2001 From: Oliver Date: Sat, 4 Jun 2022 09:11:30 +1000 Subject: [PATCH] Fix behaviour of attachment table for purchase orders (#3127) - Refresh table, rather than reloading page! (cherry picked from commit 141c2370e3a19526def9bfcd7ccac50e60e1684a) --- InvenTree/order/templates/order/purchase_order_detail.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/InvenTree/order/templates/order/purchase_order_detail.html b/InvenTree/order/templates/order/purchase_order_detail.html index 85d93f969a..1c4b36d3aa 100644 --- a/InvenTree/order/templates/order/purchase_order_detail.html +++ b/InvenTree/order/templates/order/purchase_order_detail.html @@ -135,7 +135,7 @@ }, label: 'attachment', success: function(data, status, xhr) { - location.reload(); + $('#attachment-table').bootstrapTable('refresh'); } } );