Skip to content

Commit 28c92cd

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. 304e7e8
2 parents a1d4381 + 304e7e8 commit 28c92cd

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() > 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)