Skip to content

Commit 4d5fa5b

Browse files
ENGCOM-3832: 9130 remove the negative qty block. #20206
- Merge Pull Request #20206 from saphaljha/magento2:2.2-develop-PR-port-19206 - Merged commits: 1. 2b88353
2 parents a392746 + 2b88353 commit 4d5fa5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/CatalogInventory/Block/Stockqty/AbstractStockqty.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ public function getPlaceholderId()
131131
*/
132132
public function isMsgVisible()
133133
{
134-
return $this->getStockQty() > 0 && $this->getStockQtyLeft() <= $this->getThresholdQty();
134+
return $this->getStockQty() > 0 && $this->getStockQtyLeft() > 0 && $this->getStockQtyLeft() <= $this->getThresholdQty();
135135
}
136136

137137
/**

0 commit comments

Comments
 (0)