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:
Robbie Averill 2018-04-17 13:01:09 +12:00 committed by GitHub
commit 9243546b75
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}