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 @@ -19,7 +19,9 @@ class Visual extends AbstractSwatch
19
19
/**
20
20
* Create store values
21
21
*
22
- * @codeCoverageIgnore
22
+ * Method not intended to escape HTML entities
23
+ * Escaping will be applied in template files
24
+ *
23
25
* @param integer $storeId
24
26
* @param integer $optionId
25
27
* @return array
@@ -38,16 +40,16 @@ protected function createStoreValues($storeId, $optionId)
38
40
}
39
41
40
42
if (isset ($ storeValues [$ optionId ])) {
41
- $ value ['store ' . $ storeId ] = $ this -> escapeHtml ( $ storeValues [$ optionId ]) ;
43
+ $ value ['store ' . $ storeId ] = $ storeValues [$ optionId ];
42
44
}
43
45
44
46
if (isset ($ swatchStoreValue [$ optionId ])) {
45
- $ value ['defaultswatch ' . $ storeId ] = $ this -> escapeHtml ( $ swatchStoreValue [$ optionId ]) ;
47
+ $ value ['defaultswatch ' . $ storeId ] = $ swatchStoreValue [$ optionId ];
46
48
}
47
49
48
50
$ swatchStoreValue = $ this ->reformatSwatchLabels ($ swatchStoreValue );
49
51
if (isset ($ swatchStoreValue [$ optionId ])) {
50
- $ value ['swatch ' . $ storeId ] = $ this -> escapeHtml ( $ swatchStoreValue [$ optionId ]) ;
52
+ $ value ['swatch ' . $ storeId ] = $ swatchStoreValue [$ optionId ];
51
53
}
52
54
53
55
return $ value ;
You can’t perform that action at this time.
0 commit comments