Make sure values from api are correct
[MAILPOET-2453]
This commit is contained in:
committed by
Rostislav Wolný
parent
05b93da9b2
commit
185566460b
@@ -45,7 +45,9 @@ class CustomFields extends APIEndpoint {
|
||||
}
|
||||
$custom_field = CustomField::findOne($custom_field->id);
|
||||
if(!$custom_field instanceof CustomField) return $this->errorResponse();
|
||||
return $this->successResponse($custom_field->asArray());
|
||||
$response = $custom_field->asArray();
|
||||
$response['id'] = (int)$response['id'];
|
||||
return $this->successResponse($response);
|
||||
}
|
||||
|
||||
function get($data = []) {
|
||||
|
Reference in New Issue
Block a user