File tree Expand file tree Collapse file tree 2 files changed +11
-9
lines changed
app/code/Magento/Swatches/Block/Adminhtml/Attribute/Edit/Options Expand file tree Collapse file tree 2 files changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,9 @@ public function __construct(
78
78
/**
79
79
* Create store values
80
80
*
81
- * @codeCoverageIgnore
81
+ * Method not intended to escape HTML entities
82
+ * Escaping will be applied in template files
83
+ *
82
84
* @param integer $storeId
83
85
* @param integer $optionId
84
86
* @return array
@@ -88,10 +90,8 @@ protected function createStoreValues($storeId, $optionId)
88
90
$ value = [];
89
91
$ storeValues = $ this ->getStoreOptionValues ($ storeId );
90
92
$ swatchStoreValue = isset ($ storeValues ['swatch ' ]) ? $ storeValues ['swatch ' ] : null ;
91
- $ value ['store ' . $ storeId ] = isset ($ storeValues [$ optionId ]) ?
92
- $ this ->escapeHtml ($ storeValues [$ optionId ]) : '' ;
93
- $ value ['swatch ' . $ storeId ] = isset ($ swatchStoreValue [$ optionId ]) ?
94
- $ this ->escapeHtml ($ swatchStoreValue [$ optionId ]) : '' ;
93
+ $ value ['store ' . $ storeId ] = isset ($ storeValues [$ optionId ]) ? $ storeValues [$ optionId ] : '' ;
94
+ $ value ['swatch ' . $ storeId ] = isset ($ swatchStoreValue [$ optionId ]) ? $ swatchStoreValue [$ optionId ] : '' ;
95
95
96
96
return $ value ;
97
97
}
Original file line number Diff line number Diff line change @@ -18,7 +18,9 @@ class Visual extends AbstractSwatch
18
18
/**
19
19
* Create store values
20
20
*
21
- * @codeCoverageIgnore
21
+ * Method not intended to escape HTML entities
22
+ * Escaping will be applied in template files
23
+ *
22
24
* @param integer $storeId
23
25
* @param integer $optionId
24
26
* @return array
@@ -37,16 +39,16 @@ protected function createStoreValues($storeId, $optionId)
37
39
}
38
40
39
41
if (isset ($ storeValues [$ optionId ])) {
40
- $ value ['store ' . $ storeId ] = $ this -> escapeHtml ( $ storeValues [$ optionId ]) ;
42
+ $ value ['store ' . $ storeId ] = $ storeValues [$ optionId ];
41
43
}
42
44
43
45
if (isset ($ swatchStoreValue [$ optionId ])) {
44
- $ value ['defaultswatch ' . $ storeId ] = $ this -> escapeHtml ( $ swatchStoreValue [$ optionId ]) ;
46
+ $ value ['defaultswatch ' . $ storeId ] = $ swatchStoreValue [$ optionId ];
45
47
}
46
48
47
49
$ swatchStoreValue = $ this ->reformatSwatchLabels ($ swatchStoreValue );
48
50
if (isset ($ swatchStoreValue [$ optionId ])) {
49
- $ value ['swatch ' . $ storeId ] = $ this -> escapeHtml ( $ swatchStoreValue [$ optionId ]) ;
51
+ $ value ['swatch ' . $ storeId ] = $ swatchStoreValue [$ optionId ];
50
52
}
51
53
52
54
return $ value ;
You can’t perform that action at this time.
0 commit comments