Skip to content

Commit deb05f1

Browse files
sanganinamratagelanivishal
authored andcommitted
Fixed widget template rendering issue while rewriting widget block
1 parent 92044eb commit deb05f1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-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: 3 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,7 @@ 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', false, 'Magento_CatalogWidget::product/widget/content/grid.phtml'],
191191
['encoded-conditions-string', false, 'encoded-conditions-string'],
192192
]);
193193

@@ -225,7 +225,7 @@ public function testGetWidgetDeclarationWithZeroValueParam()
225225
'show_pager' => '1',
226226
'products_per_page' => '5',
227227
'products_count' => '0',
228-
'template' => 'product/widget/content/grid.phtml',
228+
'template' => 'Magento_CatalogWidget::product/widget/content/grid.phtml',
229229
'conditions' => $conditions
230230
];
231231

0 commit comments

Comments
 (0)