|
|
@@ -491,13 +491,6 @@ function zimbraSingle_ChangePassword($params)
|
|
|
*/
|
|
|
function zimbraSingle_CreateAccount($params)
|
|
|
{
|
|
|
- logModuleCall(
|
|
|
- 'zimbrasingle',
|
|
|
- __FUNCTION__,
|
|
|
- $whmcs,
|
|
|
- "Debug",
|
|
|
- $params
|
|
|
- );
|
|
|
$accessData = zimbraSingleGetAccess();
|
|
|
$api = new Zm_Auth($accessData['zimbraServer'], $accessData['adminUser'], $accessData['adminPass'], "admin");
|
|
|
$login = $api->login();
|
|
|
@@ -544,12 +537,12 @@ function zimbraSingle_CreateAccount($params)
|
|
|
);
|
|
|
return "Error: could not decrypt password";
|
|
|
}
|
|
|
- $cosID = $apiAccountManager->getCosId($params['customfields']['cos']);
|
|
|
+ $cosID = $apiAccountManager->getCosId($params['configoption1']);
|
|
|
if(is_a($cosID, "Exception")) {
|
|
|
logModuleCall(
|
|
|
'zimbrasingle',
|
|
|
__FUNCTION__,
|
|
|
- $params['customfields']['cos'],
|
|
|
+ $params['configoption1'],
|
|
|
"Error: serviceclass not available",
|
|
|
$cosID
|
|
|
);
|
|
|
@@ -748,7 +741,7 @@ function zimbraSingle_ChangePackage($params)
|
|
|
return $login->getMessage();
|
|
|
}
|
|
|
$apiAccountManager = new Zm_Account($api);
|
|
|
- $response = $apiAccountManager->setAccountCos($account_name, $params['customfields']['cos']);
|
|
|
+ $response = $apiAccountManager->setAccountCos($account_name, $params['configoption1']);
|
|
|
if(is_a($response, "Exception")) {
|
|
|
logModuleCall(
|
|
|
'zimbrasingle',
|