|
|
@@ -71,12 +71,27 @@ class AccountDataProvider extends BaseDataProvider
|
|
|
$productManager = new ProductManager();
|
|
|
$productManager->loadByHostingId($hid);
|
|
|
|
|
|
+ $fields['firstName'] = $this->formData['firstname'];
|
|
|
+ $fields['surName'] = $this->formData['lastname'];
|
|
|
+ $fields['commonName'] = $this->formData['display_name'];
|
|
|
+ $fields['postalAddressWork']['extendedAddress'] = $this->formData['office'];
|
|
|
+ $fields['titleBefore'] = $this->formData['title'];
|
|
|
+ $fields['phoneNumberWorkVoice'] = $this->formData['work_phone'];
|
|
|
+ $fields['phoneNumberMobile'] = $this->formData['mobile_phone'];
|
|
|
+ $fields['departmentName'] = $this->formData['department'];
|
|
|
+ $fields['profession'] = $this->formData['profession'];
|
|
|
+ if ($this->formData['quota'] > 0) {
|
|
|
+ $fields['diskSizeLimit']['isActive'] = TRUE;
|
|
|
+ $fields['diskSizeLimit']['limit']['value'] = $this->formData['quota'];
|
|
|
+ $fields['diskSizeLimit']['limit']['unit'] = $this->formData['unit'];
|
|
|
+ }
|
|
|
+
|
|
|
logModuleCall(
|
|
|
'kerioEmail',
|
|
|
__FUNCTION__,
|
|
|
$this->formData,
|
|
|
'Debug Add Account',
|
|
|
- $hid
|
|
|
+ $this->data
|
|
|
);
|
|
|
|
|
|
return (new HtmlDataJsonResponse())->setMessageAndTranslate('emailAccountHasBeenAdded')->setStatusSuccess();
|