|
|
@@ -78,8 +78,8 @@ class EditAccountDataProvider extends BaseDataProvider
|
|
|
$this->data['currentCosId'] = $result->getDataResourceA(Account::ATTR_CLASS_OF_SERVICE_ID);
|
|
|
$this->data['cosId'] = $result->getDataResourceA(Account::ATTR_CLASS_OF_SERVICE_ID);
|
|
|
$this->data['state'] = $result->getDataResourceA(Account::ATTR_STATE);
|
|
|
- $this->data['target'] = $result->getDataResourceA(Account::ATTR_MAIL_FORWARD);
|
|
|
- if (empty($this->data['target'])) {
|
|
|
+ $this->data['zimbraPrefMailForwardingAddress'] = $result->getDataResourceA(Account::ATTR_MAIL_FORWARD);
|
|
|
+ if (empty($this->data['zimbraPrefMailForwardingAddress'])) {
|
|
|
$this->data['forward'] = 'off';
|
|
|
} else {
|
|
|
$this->data['forward'] = 'on';
|
|
|
@@ -115,14 +115,12 @@ class EditAccountDataProvider extends BaseDataProvider
|
|
|
{
|
|
|
$value = in_array($field, $fieldToProtection) ? htmlentities($value) : $value;
|
|
|
}
|
|
|
- if (empty($this->formData['target'])) {
|
|
|
+ if (empty($this->formData['zimbraPrefMailForwardingAddress'])) {
|
|
|
$this->formData['zimbraPrefMailLocalDeliveryDisabled'] = FALSE;
|
|
|
- $this->formData['zimbraPrefMailForwardingAddress'] = NULL;
|
|
|
} else {
|
|
|
$this->formData['zimbraPrefMailLocalDeliveryDisabled'] = TRUE;
|
|
|
- $this->formData['zimbraPrefMailForwardingAddress'] = $this->formData['target'];
|
|
|
- unset($this->formData['target']);
|
|
|
}
|
|
|
+ unset($this->formData['forward']);
|
|
|
/**
|
|
|
* product manager allow to check product settings
|
|
|
*/
|