From 0fcb4e3170d7465c4b55fa902117ed550714a50f Mon Sep 17 00:00:00 2001 From: Oliver Date: Fri, 16 Jul 2021 13:30:11 +1000 Subject: [PATCH] Link fixes --- InvenTree/order/templates/order/purchase_order_detail.html | 4 ++-- InvenTree/templates/js/company.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/InvenTree/order/templates/order/purchase_order_detail.html b/InvenTree/order/templates/order/purchase_order_detail.html index 97a4ffb78e..480f2f500d 100644 --- a/InvenTree/order/templates/order/purchase_order_detail.html +++ b/InvenTree/order/templates/order/purchase_order_detail.html @@ -324,9 +324,9 @@ $("#po-table").inventreeTable({ title: '{% trans "MPN" %}', formatter: function(value, row, index, field) { if (row.supplier_part_detail && row.supplier_part_detail.manufacturer_part) { - return renderLink(value, `/manufacturer-part/${row.supplier_part_detail.manufacturer_part.pk}/`); + return renderLink(value, `/manufacturer-part/${row.supplier_part_detail.manufacturer_part}/`); } else { - return ""; + return "-"; } }, }, diff --git a/InvenTree/templates/js/company.js b/InvenTree/templates/js/company.js index 18d7408b23..7daa99e1c6 100644 --- a/InvenTree/templates/js/company.js +++ b/InvenTree/templates/js/company.js @@ -539,7 +539,7 @@ function loadSupplierPartTable(table, url, options) { title: '{% trans "MPN" %}', formatter: function(value, row, index, field) { if (value && row.manufacturer_part) { - return renderLink(value, `/manufacturer-part/${row.manufacturer_part.pk}/`); + return renderLink(value, `/manufacturer-part/${row.manufacturer_part}/`); } else { return "-"; }