mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Merge pull request #8326 from creative-commoners/pulls/4.2/remove-double-encoding
FIX Remove double escaping of HTML values in print views
This commit is contained in:
commit
a87165c299
@ -227,10 +227,6 @@ class GridFieldPrintButton implements GridField_HTMLProvider, GridField_ActionPr
|
|||||||
foreach ($printColumns as $field => $label) {
|
foreach ($printColumns as $field => $label) {
|
||||||
$value = $gridField->getDataFieldValue($item, $field);
|
$value = $gridField->getDataFieldValue($item, $field);
|
||||||
|
|
||||||
if ($item->escapeTypeForField($field) != 'xml') {
|
|
||||||
$value = Convert::raw2xml($value);
|
|
||||||
}
|
|
||||||
|
|
||||||
$itemRow->push(new ArrayData(array(
|
$itemRow->push(new ArrayData(array(
|
||||||
"CellString" => $value,
|
"CellString" => $value,
|
||||||
)));
|
)));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user