|
|
@@ -113,15 +113,6 @@ class EditAccountDataProvider extends BaseDataProvider
|
|
|
return ['error' => $error->getMessage()];
|
|
|
}
|
|
|
$api->logout();
|
|
|
-
|
|
|
- logModuleCall(
|
|
|
- 'kerioEmail',
|
|
|
- __FUNCTION__,
|
|
|
- $account,
|
|
|
- 'Debug Error',
|
|
|
- $address
|
|
|
- );
|
|
|
-
|
|
|
$this->data['id'] = $account[0]['id'];
|
|
|
$this->data['username'] = $account[0]['loginName'];
|
|
|
$this->data['domain'] = $this->getWhmcsParamByKey('customfields')['maildomain'];
|
|
|
@@ -135,23 +126,10 @@ class EditAccountDataProvider extends BaseDataProvider
|
|
|
$this->data['mobile_phone'] = $address['contacts'][0]['phoneNumberMobile'];
|
|
|
$this->data['department'] = $address['contacts'][0]['departmentName'];
|
|
|
$this->data['profession'] = $address['contacts'][0]['profession'];
|
|
|
-
|
|
|
- logModuleCall(
|
|
|
- 'kerioEmail',
|
|
|
- __FUNCTION__,
|
|
|
- $account,
|
|
|
- 'Debug Error',
|
|
|
- $this->data
|
|
|
- );
|
|
|
-
|
|
|
$lang = di('lang');
|
|
|
$this->availableValues['status'] = [
|
|
|
Kerio::ACC_STATUS_ACTIVE => $lang->absoluteT('kerio','account','status','active'),
|
|
|
- Kerio::ACC_STATUS_LOCKED => $lang->absoluteT('kerio','account','status','locked'),
|
|
|
- Kerio::ACC_STATUS_MAINTENANCE => $lang->absoluteT('kerio','account','status','maintenance'),
|
|
|
- Kerio::ACC_STATUS_CLOSED => $lang->absoluteT('kerio','account','status','closed'),
|
|
|
- Kerio::ACC_STATUS_LOCKOUT => $lang->absoluteT('kerio','account','status','lockout'),
|
|
|
- Kerio::ACC_STATUS_PENDING => $lang->absoluteT('kerio','account','status','pending')
|
|
|
+ Kerio::ACC_STATUS_LOCKED => $lang->absoluteT('kerio','account','status','locked')
|
|
|
];
|
|
|
|
|
|
}
|