Skip to content

Commit 204fc73

Browse files
author
Stanislav Idolov
authored
ENGCOM-2518: [Backport] Fixed widget template rendering issue while rewriting widget block #17111
2 parents 68f959d + ff0a052 commit 204fc73

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

app/code/Magento/CatalogWidget/etc/widget.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
<parameter name="template" xsi:type="select" required="true" visible="true">
3434
<label translate="true">Template</label>
3535
<options>
36-
<option name="default" value="product/widget/content/grid.phtml" selected="true">
36+
<option name="default" value="Magento_CatalogWidget::product/widget/content/grid.phtml" selected="true">
3737
<label translate="true">Products Grid Template</label>
3838
</option>
3939
</options>

app/code/Magento/Widget/Test/Unit/Model/WidgetTest.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ public function testGetWidgetDeclaration()
174174
'show_pager' => '1',
175175
'products_per_page' => '5',
176176
'products_count' => '10',
177-
'template' => 'product/widget/content/grid.phtml',
177+
'template' => 'Magento_CatalogWidget::product/widget/content/grid.phtml',
178178
'conditions' => $conditions
179179
];
180180

@@ -187,7 +187,10 @@ public function testGetWidgetDeclaration()
187187
['1', false, '1'],
188188
['5', false, '5'],
189189
['10', false, '10'],
190-
['product/widget/content/grid.phtml', false, 'product/widget/content/grid.phtml'],
190+
['Magento_CatalogWidget::product/widget/content/grid.phtml',
191+
false,
192+
'Magento_CatalogWidget::product/widget/content/grid.phtml'
193+
],
191194
['encoded-conditions-string', false, 'encoded-conditions-string'],
192195
]);
193196

@@ -225,7 +228,7 @@ public function testGetWidgetDeclarationWithZeroValueParam()
225228
'show_pager' => '1',
226229
'products_per_page' => '5',
227230
'products_count' => '0',
228-
'template' => 'product/widget/content/grid.phtml',
231+
'template' => 'Magento_CatalogWidget::product/widget/content/grid.phtml',
229232
'conditions' => $conditions
230233
];
231234

0 commit comments

Comments
 (0)