From 0b98504371f43c141e277b98aa436a2b8ac4c972 Mon Sep 17 00:00:00 2001 From: Bernd Bestel Date: Tue, 25 Aug 2020 18:15:34 +0200 Subject: [PATCH] Don't hide the product row on the stock overview page if there are still child products in stock --- public/viewjs/stockoverview.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/viewjs/stockoverview.js b/public/viewjs/stockoverview.js index f3a3da18..187fb2f2 100644 --- a/public/viewjs/stockoverview.js +++ b/public/viewjs/stockoverview.js @@ -239,7 +239,7 @@ function RefreshProductRow(productId) productRow.addClass("table-warning"); } - if (result.stock_amount == 0 && result.product.min_stock_amount == 0) + if (result.stock_amount == 0 && result.stock_amount_aggregated == 0 && result.product.min_stock_amount == 0) { animateCSS("#product-" + productId + "-row", "fadeOut", function() {