Skip to content

Commit 59647fe

Browse files
authored
ENGCOM-3832: 9130 remove the negative qty block. #20206
2 parents 0d2f227 + 4826284 commit 59647fe

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,8 @@ 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
135+
&& $this->getStockQtyLeft() <= $this->getThresholdQty();
135136
}
136137

137138
/**

0 commit comments

Comments
 (0)