File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
app/code/Magento/Catalog/view/adminhtml/web/js
dev/tests/integration/testsuite/Magento/UrlRewrite/Block/Catalog/Category Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,8 @@ define([
10
10
] , function ( $ ) {
11
11
'use strict' ;
12
12
13
- var decodeEntities = ( function ( ) {
13
+ var decodeEntities ;
14
+ decodeEntities = ( function ( ) {
14
15
//create a new html document (doesn't execute script tags in child elements)
15
16
var doc = document . implementation . createHTMLDocument ( "" ) ;
16
17
var element = doc . createElement ( 'div' ) ;
@@ -32,6 +33,7 @@ define([
32
33
return x ;
33
34
}
34
35
}
36
+
35
37
return decodeHTMLEntities ;
36
38
} ) ( ) ;
37
39
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ public function testGetTreeArrayApostropheReplaced()
56
56
$ tree = $ this ->_treeBlock ->getTreeArray ();
57
57
58
58
$ this ->assertNotContains ('\'' , $ tree ['children ' ][0 ]['children ' ][0 ]['children ' ][0 ]['name ' ]);
59
- $ this ->assertEquals (''Category 6' ' , $ tree ['children ' ][0 ]['children ' ][0 ]['children ' ][0 ]['name ' ]);
59
+ $ this ->assertEquals ('& #039;Category 6& #039 ' , $ tree ['children ' ][0 ]['children ' ][0 ]['children ' ][0 ]['name ' ]);
60
60
}
61
61
62
62
/**
You can’t perform that action at this time.
0 commit comments