File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Block/System/Config/Form/Field/FieldArray
Test/Unit/Block/System/Config/Form/Field/FieldArray Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -148,7 +148,7 @@ public function getArrayRows()
148
148
foreach ($ element ->getValue () as $ rowId => $ row ) {
149
149
$ rowColumnValues = [];
150
150
foreach ($ row as $ key => $ value ) {
151
- $ row [$ key ] = $ this -> escapeHtml ( $ value) ;
151
+ $ row [$ key ] = $ value ;
152
152
$ rowColumnValues [$ this ->_getCellInputElementId ($ rowId , $ key )] = $ row [$ key ];
153
153
}
154
154
$ row ['_id ' ] = $ rowId ;
Original file line number Diff line number Diff line change @@ -23,16 +23,16 @@ public function testGetArrayRows()
23
23
24
24
$ objectManager = new \Magento \Framework \TestFramework \Unit \Helper \ObjectManager ($ this );
25
25
$ element = $ objectManager ->getObject ('Magento\Framework\Data\Form\Element\Multiselect ' );
26
- $ element ->setValue ([['test ' => 'test ' , 'data1 ' => 'data1 ' ]]);
26
+ $ element ->setValue ([['te<s>t ' => 't<e>st ' , 'data&1 ' => 'da&ta1 ' ]]);
27
27
$ block ->setElement ($ element );
28
28
$ this ->assertEquals (
29
29
[
30
30
new \Magento \Framework \DataObject (
31
31
[
32
- 'test ' => 'test ' ,
33
- 'data1 ' => 'data1 ' ,
32
+ 'te<s>t ' => 't<e>st ' ,
33
+ 'data&1 ' => 'da&ta1 ' ,
34
34
'_id ' => 0 ,
35
- 'column_values ' => ['0_test ' => 'test ' , '0_data1 ' => 'data1 ' ],
35
+ 'column_values ' => ['0_te<s>t ' => 't<e>st ' , '0_data&1 ' => 'da&ta1 ' ],
36
36
]
37
37
),
38
38
],
You can’t perform that action at this time.
0 commit comments