id <> loginname, grrr

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann (d00p)
2018-02-25 17:08:30 +01:00
parent f32a1921c5
commit e66dde2e64

View File

@@ -1201,7 +1201,7 @@ class Customers extends ApiCommand implements ResourceEntity
}
$json_result = Customers::getLocal($this->getUserData(), array(
'loginname' => $result['customerid']
'id' => $result['customerid']
))->get();
$result = json_decode($json_result, true)['data'];
return $this->response(200, "successfull", $result);