Skip to content

Commit b74e1c8

Browse files
committed
MAGETWO-45311: Remove dependency on Website for Cataloginventory
- Fixed constant
1 parent c377e84 commit b74e1c8

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ class Stock extends AbstractExtensibleModel implements StockInterface
4444

4545
const STOCK_IN_STOCK = 1;
4646

47+
const WEBSITE_ID = 'website_id';
48+
4749
/**
4850
* Default stock id
4951
*/

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ class Item extends AbstractExtensibleModel implements StockItemInterface
3434
*/
3535
protected $eventPrefix = 'cataloginventory_stock_item';
3636

37+
const WEBSITE_ID = 'website_id';
38+
3739
/**
3840
* Parameter name in event
3941
*

0 commit comments

Comments
 (0)