Skip to content

Commit

Permalink
Resolves #1235 Product remains published if the stock quantity is equ…
Browse files Browse the repository at this point in the history
…al to the minimum stock quantity and the low stock activity is set to "unpublish"

(cherry picked from commit 2ad8edd)
  • Loading branch information
mgesing authored and Michael-Herzog committed Jan 2, 2025
1 parent 10490e4 commit 0c63ae7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ public virtual async Task<AdjustInventoryResult> AdjustInventoryAsync(Product pr
newDisableWishlistButton = product.MinStockQuantity >= result.StockQuantityNew;
break;
case LowStockActivity.Unpublish:
newPublished = product.MinStockQuantity <= result.StockQuantityNew;
newPublished = product.MinStockQuantity < result.StockQuantityNew;
break;
}

Expand Down

0 comments on commit 0c63ae7

Please sign in to comment.