From 0c63ae7c8002687ccb269f6a08aa19f42c566a37 Mon Sep 17 00:00:00 2001 From: mgesing Date: Thu, 2 Jan 2025 10:37:29 +0100 Subject: [PATCH] Resolves #1235 Product remains published if the stock quantity is equal to the minimum stock quantity and the low stock activity is set to "unpublish" (cherry picked from commit 2ad8eddd41d98acc40abe10a91283bbad5535006) --- src/Smartstore.Core/Catalog/Products/Services/ProductService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Smartstore.Core/Catalog/Products/Services/ProductService.cs b/src/Smartstore.Core/Catalog/Products/Services/ProductService.cs index 18ca0e97d..cf9e7467c 100644 --- a/src/Smartstore.Core/Catalog/Products/Services/ProductService.cs +++ b/src/Smartstore.Core/Catalog/Products/Services/ProductService.cs @@ -284,7 +284,7 @@ public virtual async Task AdjustInventoryAsync(Product pr newDisableWishlistButton = product.MinStockQuantity >= result.StockQuantityNew; break; case LowStockActivity.Unpublish: - newPublished = product.MinStockQuantity <= result.StockQuantityNew; + newPublished = product.MinStockQuantity < result.StockQuantityNew; break; }