Skip to content

Commit bb49e63

Browse files
committed
MDVA-198: 2.0.5 Release
1 parent 0cf72d8 commit bb49e63

File tree

1 file changed

+6
-20
lines changed

1 file changed

+6
-20
lines changed

app/code/Magento/Catalog/Setup/InstallData.php

Lines changed: 6 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,6 @@ class InstallData implements InstallDataInterface
2222
*/
2323
private $categorySetupFactory;
2424

25-
/**
26-
* Root category ID
27-
*
28-
* @var int
29-
*/
30-
const ROOT_CATEGORY_ID = 1;
31-
32-
/**
33-
* Default category ID
34-
*
35-
* @var int
36-
*/
37-
const DEFAULT_CATEGORY_ID = 2;
38-
3925
/**
4026
* Init
4127
*
@@ -60,10 +46,10 @@ public function install(ModuleDataSetupInterface $setup, ModuleContextInterface
6046
$categorySetup->installEntities();
6147
// Create Root Catalog Node
6248
$categorySetup->createCategory()
63-
->load(self::ROOT_CATEGORY_ID)
64-
->setId(self::ROOT_CATEGORY_ID)
49+
->load(1)
50+
->setId(1)
6551
->setStoreId(0)
66-
->setPath(self::ROOT_CATEGORY_ID)
52+
->setPath(1)
6753
->setLevel(0)
6854
->setPosition(0)
6955
->setChildrenCount(0)
@@ -73,10 +59,10 @@ public function install(ModuleDataSetupInterface $setup, ModuleContextInterface
7359

7460
// Create Default Catalog Node
7561
$category = $categorySetup->createCategory();
76-
$category->load(self::DEFAULT_CATEGORY_ID)
77-
->setId(self::DEFAULT_CATEGORY_ID)
62+
$category->load(2)
63+
->setId(2)
7864
->setStoreId(0)
79-
->setPath(self::ROOT_CATEGORY_ID . '/' . self::DEFAULT_CATEGORY_ID)
65+
->setPath('1/2')
8066
->setName('Default Category')
8167
->setDisplayMode('PRODUCTS')
8268
->setIsActive(1)

0 commit comments

Comments
 (0)