|
|
@@ -161,13 +161,18 @@ class Accounts extends DataTable implements ClientArea
|
|
|
return ['error' => $error->getMessage()];
|
|
|
}
|
|
|
$api->logout();
|
|
|
+ foreach($domains as $maildomain) {
|
|
|
+ if(($maildomain['name']) === $this->getWhmcsParamByKey('domain')){
|
|
|
+ $this->maildomain = $maildomain['id'];
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
logModuleCall(
|
|
|
'kerioEmail',
|
|
|
__FUNCTION__,
|
|
|
$domains,
|
|
|
'Debug Accounts',
|
|
|
- $this->getWhmcsParamByKey('customfields')['maildomain']
|
|
|
+ $this->maildomain
|
|
|
);
|
|
|
|
|
|
$productManager = new ProductManager();
|