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:
Robbie Averill 2018-08-27 13:37:32 +12:00 committed by GitHub
commit a87165c299
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -227,10 +227,6 @@ class GridFieldPrintButton implements GridField_HTMLProvider, GridField_ActionPr
foreach ($printColumns as $field => $label) {
$value = $gridField->getDataFieldValue($item, $field);
if ($item->escapeTypeForField($field) != 'xml') {
$value = Convert::raw2xml($value);
}
$itemRow->push(new ArrayData(array(
"CellString" => $value,
)));