diff --git a/app/code/Magento/CatalogInventory/Model/Stock/Status.php b/app/code/Magento/CatalogInventory/Model/Stock/Status.php index a20fe381d51f7..35c89db483f49 100644 --- a/app/code/Magento/CatalogInventory/Model/Stock/Status.php +++ b/app/code/Magento/CatalogInventory/Model/Stock/Status.php @@ -78,6 +78,7 @@ protected function _construct() } //@codeCoverageIgnoreStart + /** * @return int */ @@ -99,7 +100,7 @@ public function getWebsiteId() */ public function getStockId() { - return $this->getData(self::KEY_WEBSITE_ID); + return $this->getData(self::KEY_STOCK_ID); } /** @@ -128,6 +129,7 @@ public function getStockItem() } //@codeCoverageIgnoreStart + /** * @param int $productId * @return $this