mirror of
https://github.com/silverstripe/silverstripe-restfulserver
synced 2024-10-22 12:05:58 +00:00
FIX: fix JSONDataFormatter to not convert values to XML
This commit is contained in:
parent
3207e93b89
commit
15aa0922f0
@ -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…
x
Reference in New Issue
Block a user