mirror of
https://github.com/FOSSBilling/FOSSBilling.git
synced 2026-12-02 21:30:16 +09:00
Bug: Servicehosting API returning wrong order data (#2885)
Update database query to filter by service type
This commit is contained in:
1 parent
996ff15a3e
commit
7e2cf65edd
1 file changed
+1
-1
@@ -178,7 +178,7 @@ class Admin extends \Api_Abstract
|
||||
$bean->import($account);
|
||||
$model = $bean->box();
|
||||
|
||||
$order = $this->di['db']->findOne('ClientOrder', 'service_id = :service_id', [':service_id' => $model->id]);
|
||||
$order = $this->di['db']->findOne('ClientOrder', 'service_type = "hosting" AND service_id = :service_id', [':service_id' => $model->id]);
|
||||
|
||||
$result['list'][$key] = $this->getService()->toHostingAccountApiArray($model, true, $this->getIdentity());
|
||||
|
||||
|
||||
Reference in new issue
Block a user