|
|
@@ -115,12 +115,15 @@ class EditAccountDataProvider extends BaseDataProvider
|
|
|
{
|
|
|
$value = in_array($field, $fieldToProtection) ? htmlentities($value) : $value;
|
|
|
}
|
|
|
- if (empty($this->formData['zimbraPrefMailForwardingAddress'])) {
|
|
|
+ if ($this->formData['forward'] == 'on') {
|
|
|
$this->formData['zimbraPrefMailLocalDeliveryDisabled'] = FALSE;
|
|
|
+ $this->formData['zimbraFeatureMailForwardingEnabled'] = FALSE;
|
|
|
+ $this->formData['zimbraPrefMailForwardingAddress'] = NULL;
|
|
|
} else {
|
|
|
$this->formData['zimbraPrefMailLocalDeliveryDisabled'] = TRUE;
|
|
|
+ $this->formData['zimbraFeatureMailForwardingEnabled'] = TRUE;
|
|
|
}
|
|
|
- unset($this->formData['forward']);
|
|
|
+
|
|
|
/**
|
|
|
* product manager allow to check product settings
|
|
|
*/
|