From 52071f2c3fc33a2404763648429420a6540c5937 Mon Sep 17 00:00:00 2001 From: Oliver Date: Sat, 1 Oct 2022 16:08:32 +1000 Subject: [PATCH] Show placeholder for null IPN values in "stock" table (#3737) - Otherwise can display the text "null" --- InvenTree/templates/js/translated/stock.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/InvenTree/templates/js/translated/stock.js b/InvenTree/templates/js/translated/stock.js index 93a496f623..7ca1c77668 100644 --- a/InvenTree/templates/js/translated/stock.js +++ b/InvenTree/templates/js/translated/stock.js @@ -1729,7 +1729,11 @@ function loadStockTable(table, options) { switchable: params['part_detail'], formatter: function(value, row) { var ipn = row.part_detail.IPN; - return withTitle(shortenString(ipn), ipn); + if (ipn) { + return withTitle(shortenString(ipn), ipn); + } else { + return '-'; + } }, };