Skip to content

Commit 6fef69b

Browse files
Merge remote-tracking branch 'remotes/github/MAGETWO-58212' into EPAM-PR-34
2 parents dcaaa19 + 4b40d3b commit 6fef69b

File tree

2 files changed

+22
-5
lines changed

2 files changed

+22
-5
lines changed

app/code/Magento/Bundle/Ui/DataProvider/Product/Form/Modifier/BundlePanel.php

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
use Magento\Framework\UrlInterface;
1515
use Magento\Ui\Component\Container;
1616
use Magento\Ui\Component\Form;
17+
use Magento\Ui\Component\Form\Fieldset;
1718
use Magento\Ui\Component\Modal;
1819

1920
/**
@@ -69,13 +70,26 @@ public function __construct(
6970
}
7071

7172
/**
72-
* {@inheritdoc}
73+
* @inheritdoc
74+
*
7375
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
7476
*/
7577
public function modifyMeta(array $meta)
7678
{
7779
$meta = $this->removeFixedTierPrice($meta);
78-
$path = $this->arrayManager->findPath(static::CODE_BUNDLE_DATA, $meta, null, 'children');
80+
81+
$groupCode = static::CODE_BUNDLE_DATA;
82+
$path = $this->arrayManager->findPath($groupCode, $meta, null, 'children');
83+
if (empty($path)) {
84+
$meta[$groupCode]['children'] = [];
85+
$meta[$groupCode]['arguments']['data']['config'] = [
86+
'componentType' => Fieldset::NAME,
87+
'label' => __('Bundle Items'),
88+
'collapsible' => true
89+
];
90+
91+
$path = $this->arrayManager->findPath($groupCode, $meta, null, 'children');
92+
}
7993

8094
$meta = $this->arrayManager->merge(
8195
$path,
@@ -220,7 +234,7 @@ private function removeFixedTierPrice(array $meta)
220234
}
221235

222236
/**
223-
* {@inheritdoc}
237+
* @inheritdoc
224238
*/
225239
public function modifyData(array $data)
226240
{

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,8 @@ public function __construct(
139139
}
140140

141141
/**
142-
* {@inheritdoc}
142+
* @inheritdoc
143+
*
143144
* @since 101.0.0
144145
*/
145146
public function modifyMeta(array $meta)
@@ -158,7 +159,8 @@ public function modifyMeta(array $meta)
158159
}
159160

160161
/**
161-
* {@inheritdoc}
162+
* @inheritdoc
163+
*
162164
* @since 101.0.0
163165
*/
164166
public function modifyData(array $data)
@@ -381,6 +383,7 @@ private function addAdvancedPriceLink()
381383
);
382384

383385
$advancedPricingButton['arguments']['data']['config'] = [
386+
'dataScope' => 'advanced_pricing_button',
384387
'displayAsLink' => true,
385388
'formElement' => Container::NAME,
386389
'componentType' => Container::NAME,

0 commit comments

Comments
 (0)