Skip to content

Commit f52d6f2

Browse files
author
Stanislav Idolov
authored
ENGCOM-1694: Fixes in widget component (2.3-develop) #15554
2 parents 779ddd8 + 41733bd commit f52d6f2

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

app/code/Magento/Widget/Model/Widget/Instance.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
* @method int getThemeId()
2323
*
2424
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
25+
* @SuppressWarnings(PHPMD.TooManyFields)
2526
* @since 100.0.2
2627
*/
2728
class Instance extends \Magento\Framework\Model\AbstractModel
@@ -96,6 +97,16 @@ class Instance extends \Magento\Framework\Model\AbstractModel
9697
*/
9798
protected $_relatedCacheTypes;
9899

100+
/**
101+
* @var \Magento\Catalog\Model\Product\Type
102+
*/
103+
protected $_productType;
104+
105+
/**
106+
* @var \Magento\Widget\Model\Config\Reader
107+
*/
108+
protected $_reader;
109+
99110
/**
100111
* @var \Magento\Framework\Escaper
101112
*/

app/code/Magento/Widget/Test/Unit/Model/_files/widget.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
</parameter>
4242
<parameter name="id_path" xsi:type="block" visible="true" required="true" sort_order="10">
4343
<label translate="true">Product</label>
44-
<block class="Magento\Backend\Block\Catalog\Product\Widget\Chooser">
44+
<block class="Magento\Catalog\Block\Adminhtml\Product\Widget\Chooser">
4545
<data>
4646
<item name="button" xsi:type="array">
4747
<item name="open" xsi:type="string" translate="true">Select Product...</item>

app/code/Magento/Widget/Test/Unit/Model/_files/widget_config.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
'type' => 'label',
4949
'@' => ['type' => 'complex'],
5050
'helper_block' => [
51-
'type' => \Magento\Backend\Block\Catalog\Product\Widget\Chooser::class,
51+
'type' => \Magento\Catalog\Block\Adminhtml\Product\Widget\Chooser::class,
5252
'data' => ['button' => ['open' => 'Select Product...']],
5353
],
5454
'visible' => '1',

0 commit comments

Comments
 (0)