Skip to content

Commit e2dd00a

Browse files
Felix Delvalduhon
authored andcommitted
MAGETWO-66345: [Backport] \Magento\CatalogInventory\Model\Stock\Status::getStockId() is Returning the Website id Instead of the Stock id - for 2.0
- StockStatus->getStockId() to return correct value - cherry picked from commit d58d143
1 parent ff9e35a commit e2dd00a

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/CatalogInventory/Model/Stock

1 file changed

+1
-1
lines changed

app/code/Magento/CatalogInventory/Model/Stock/Status.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public function getWebsiteId()
9999
*/
100100
public function getStockId()
101101
{
102-
return $this->getData(self::KEY_WEBSITE_ID);
102+
return $this->getData(self::KEY_STOCK_ID);
103103
}
104104

105105
/**

0 commit comments

Comments
 (0)