File tree Expand file tree Collapse file tree 3 files changed +2
-10
lines changed
lib/web/mage/adminhtml/wysiwyg Expand file tree Collapse file tree 3 files changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -277,7 +277,7 @@ public function getWidgetsArray($filters = [])
277
277
*/
278
278
public function getWidgetDeclaration ($ type , $ params = [], $ asIs = true )
279
279
{
280
- $ directive = '{{widget type=" ' . preg_quote ( $ type) . '" ' ;
280
+ $ directive = '{{widget type=" ' . $ type . '" ' ;
281
281
282
282
foreach ($ params as $ name => $ value ) {
283
283
// Retrieve default option value if pre-configured
Original file line number Diff line number Diff line change @@ -75,14 +75,6 @@ public function testGetWidgetByClassType()
75
75
$ this ->assertNull ($ this ->widget ->getWidgetByClassType ('type2 ' ));
76
76
}
77
77
78
- public function testGetWidgetDeclarationTypeWithBackslashes ()
79
- {
80
- $ this ->assertContains (
81
- 'Magento \\\\Widget \\\\Backslashed \\\\ClassName ' ,
82
- $ this ->widget ->getWidgetDeclaration ('Magento\Widget\Backslashed\ClassName ' )
83
- );
84
- }
85
-
86
78
public function testGetConfigAsObject ()
87
79
{
88
80
$ configFile = __DIR__ . '/_files/mappedConfigArrayAll.php ' ;
Original file line number Diff line number Diff line change @@ -209,7 +209,7 @@ define([
209
209
var descrCnt = $ ( 'widget-description-' + this . widgetEl . selectedIndex ) ;
210
210
if ( noteCnt != undefined ) {
211
211
var description = ( descrCnt != undefined ? descrCnt . innerHTML : '' ) ;
212
- noteCnt . update ( descrCnt . innerHTML ) ;
212
+ noteCnt . update ( description ) ;
213
213
}
214
214
} ,
215
215
You can’t perform that action at this time.
0 commit comments