fix: [api rearrange] shouldn't trigger when dealing with arrays
parent
370995ab50
commit
85e8a35091
|
@ -558,7 +558,7 @@ class RestResponseComponent extends Component
|
|||
if (!empty($errors)) {
|
||||
$data['errors'] = $errors;
|
||||
}
|
||||
if (!$raw) {
|
||||
if (!$raw && is_object($data)) {
|
||||
$data = $this->APIRearrange->rearrangeForAPI($data);
|
||||
}
|
||||
return $this->__sendResponse($data, 200, $format, $raw, $download, $headers);
|
||||
|
|
Loading…
Reference in New Issue