Skip to content

Commit 24024fb

Browse files
author
Volodymyr Klymenko
authored
Merge pull request #941 from magento-east/MAGETWO-66366
East 2.1.6 MAGETWO-66366
2 parents 81d30a9 + ccd8b1f commit 24024fb

File tree

1 file changed

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

1 file changed

+3
-1
lines changed

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

+3-1
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ protected function _construct()
7878
}
7979

8080
//@codeCoverageIgnoreStart
81+
8182
/**
8283
* @return int
8384
*/
@@ -99,7 +100,7 @@ public function getWebsiteId()
99100
*/
100101
public function getStockId()
101102
{
102-
return $this->getData(self::KEY_WEBSITE_ID);
103+
return $this->getData(self::KEY_STOCK_ID);
103104
}
104105

105106
/**
@@ -128,6 +129,7 @@ public function getStockItem()
128129
}
129130

130131
//@codeCoverageIgnoreStart
132+
131133
/**
132134
* @param int $productId
133135
* @return $this

0 commit comments

Comments
 (0)