Skip to content

Commit 2933be9

Browse files
committed
Merge remote-tracking branch 'origin/MC-5892' into 2.3-qwerty-pr48
2 parents c6edec8 + 3026f99 commit 2933be9

File tree

3 files changed

+18
-4
lines changed

3 files changed

+18
-4
lines changed

app/code/Magento/Catalog/Ui/DataProvider/Product/Form/Modifier/Categories.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,7 @@ protected function getCategoriesTree($filter = null)
362362

363363
$categoryById[$category->getId()]['is_active'] = $category->getIsActive();
364364
$categoryById[$category->getId()]['label'] = $category->getName();
365+
$categoryById[$category->getId()]['__disableTmpl'] = true;
365366
$categoryById[$category->getParentId()]['optgroup'][] = &$categoryById[$category->getId()];
366367
}
367368

dev/tests/integration/testsuite/Magento/Catalog/Ui/DataProvider/Product/Form/Modifier/_files/expected_categories.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,68 +10,80 @@
1010
'value' => '2',
1111
'is_active' => '1',
1212
'label' => 'Default Category',
13+
'__disableTmpl' => true,
1314
'optgroup' =>
1415
[
1516
0 => [
1617
'value' => '3',
1718
'is_active' => '1',
1819
'label' => 'Category 1',
20+
'__disableTmpl' => true,
1921
'optgroup' => [
2022
0 => [
2123
'value' => '4',
2224
'is_active' => '1',
2325
'label' => 'Category 1.1',
26+
'__disableTmpl' => true,
2427
'optgroup' =>
2528
[
2629
0 =>
2730
[
2831
'value' => '5',
2932
'is_active' => '1',
3033
'label' => 'Category 1.1.1',
34+
'__disableTmpl' => true,
3135
],
3236
],
3337
],
3438
1 => [
3539
'value' => '13',
3640
'is_active' => '1',
3741
'label' => 'Category 1.2',
42+
'__disableTmpl' => true,
3843
],
3944
],
4045
],
4146
1 => [
4247
'value' => '6',
4348
'is_active' => '1',
4449
'label' => 'Category 2',
50+
'__disableTmpl' => true,
4551
],
4652
2 => [
4753
'value' => '7',
4854
'is_active' => '1',
4955
'label' => 'Movable',
56+
'__disableTmpl' => true,
5057
],
5158
3 => [
5259
'value' => '8',
5360
'is_active' => '0',
5461
'label' => 'Inactive',
62+
'__disableTmpl' => true,
5563
],
5664
4 => [
5765
'value' => '9',
5866
'is_active' => '1',
5967
'label' => 'Movable Position 1',
68+
'__disableTmpl' => true,
6069
],
6170
5 => [
6271
'value' => '10',
6372
'is_active' => '1',
6473
'label' => 'Movable Position 2',
74+
'__disableTmpl' => true,
6575
],
6676
6 => [
6777
'value' => '11',
6878
'is_active' => '1',
6979
'label' => 'Movable Position 3',
80+
'__disableTmpl' => true,
7081
],
7182
7 => [
7283
'value' => '12',
7384
'is_active' => '1',
7485
'label' => 'Category 12',
86+
'__disableTmpl' => true,
7587
],
7688
],
7789
],

dev/tests/integration/testsuite/Magento/Customer/Model/Config/Source/Group/MultiselectTest.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,22 +35,23 @@ public function testToOptionArray()
3535
[
3636
[
3737
'value' => 1,
38-
'label' => 'Default (General)'
38+
'label' => 'Default (General)',
39+
'__disableTmpl' => true,
3940
],
4041
[
4142
'value' => 1,
4243
'label' => 'General',
43-
'__disableTmpl' => true
44+
'__disableTmpl' => true,
4445
],
4546
[
4647
'value' => 2,
4748
'label' => 'Wholesale',
48-
'__disableTmpl' => true
49+
'__disableTmpl' => true,
4950
],
5051
[
5152
'value' => 3,
5253
'label' => 'Retailer',
53-
'__disableTmpl' => true
54+
'__disableTmpl' => true,
5455
],
5556
]
5657
);

0 commit comments

Comments
 (0)