Revert typecasting for now #162
This commit is contained in:
parent
b3eb68346f
commit
b5c67f1c91
1 changed files with 4 additions and 4 deletions
|
|
@ -321,8 +321,8 @@ class APIController extends Controller
|
|||
$data = [
|
||||
'first_name' => $cust->getFirstName(),
|
||||
'last_name' => $cust->getLastName(),
|
||||
'priv_third_party' => $cust->getPrivacyThirdParty(),
|
||||
'priv_promo' => $cust->getPrivacyPromo(),
|
||||
'priv_third_party' => (bool) $cust->getPrivacyThirdParty(),
|
||||
'priv_promo' => (bool) $cust->getPrivacyPromo(),
|
||||
];
|
||||
$res->setData($data);
|
||||
|
||||
|
|
@ -1587,8 +1587,8 @@ class APIController extends Controller
|
|||
$items[] = [
|
||||
'id' => $item->getID(),
|
||||
'title' => $item->getTitle(),
|
||||
'qty' => (int) $item->getQuantity(),
|
||||
'price' => (float) $item->getPrice(),
|
||||
'qty' => $item->getQuantity(),
|
||||
'price' => $item->getPrice(),
|
||||
];
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue