mirror of
https://github.com/silverstripe/silverstripe-restfulserver
synced 2024-10-22 14:05:58 +02:00
FIX: fix JSONDataFormatter to not convert values to XML
This commit is contained in:
parent
ee37e6c896
commit
4ec6eb4db0
@ -89,7 +89,7 @@ class JSONDataFormatter extends DataFormatter
|
||||
continue;
|
||||
}
|
||||
|
||||
$fieldValue = $obj->obj($fieldName)->forTemplate();
|
||||
$fieldValue = $obj->obj($fieldName)->RAW();
|
||||
$mappedFieldName = $this->getFieldAlias($className, $fieldName);
|
||||
$serobj->$mappedFieldName = $fieldValue;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user