Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions app/code/Magento/Widget/Model/Widget/Instance.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
* @method int getThemeId()
*
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
* @SuppressWarnings(PHPMD.TooManyFields)
* @since 100.0.2
*/
class Instance extends \Magento\Framework\Model\AbstractModel
Expand Down Expand Up @@ -96,6 +97,16 @@ class Instance extends \Magento\Framework\Model\AbstractModel
*/
protected $_relatedCacheTypes;

/**
* @var \Magento\Catalog\Model\Product\Type
*/
protected $_productType;

/**
* @var \Magento\Widget\Model\Config\Reader
*/
protected $_reader;

/**
* @var \Magento\Framework\Escaper
*/
Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/Widget/Test/Unit/Model/_files/widget.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
</parameter>
<parameter name="id_path" xsi:type="block" visible="true" required="true" sort_order="10">
<label translate="true">Product</label>
<block class="Magento\Backend\Block\Catalog\Product\Widget\Chooser">
<block class="Magento\Catalog\Block\Adminhtml\Product\Widget\Chooser">
<data>
<item name="button" xsi:type="array">
<item name="open" xsi:type="string" translate="true">Select Product...</item>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
'type' => 'label',
'@' => ['type' => 'complex'],
'helper_block' => [
'type' => \Magento\Backend\Block\Catalog\Product\Widget\Chooser::class,
'type' => \Magento\Catalog\Block\Adminhtml\Product\Widget\Chooser::class,
'data' => ['button' => ['open' => 'Select Product...']],
],
'visible' => '1',
Expand Down