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