|
@@ -149,12 +149,13 @@ class EditAccountDataProvider extends BaseDataProvider
|
|
|
}
|
|
}
|
|
|
$account['diskSizeLimit']['limit']['value'] = intval($this->formData['quota']);
|
|
$account['diskSizeLimit']['limit']['value'] = intval($this->formData['quota']);
|
|
|
$account['diskSizeLimit']['limit']['units'] = $this->formData['unit'];
|
|
$account['diskSizeLimit']['limit']['units'] = $this->formData['unit'];
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
if ( $this->formData['forward'] == 'on') {
|
|
if ( $this->formData['forward'] == 'on') {
|
|
|
$account['emailForwarding']['mode'] = 'UForwardYes';
|
|
$account['emailForwarding']['mode'] = 'UForwardYes';
|
|
|
$account['emailForwarding']['emailAddresses'] = [ $this->formData['target'] ];
|
|
$account['emailForwarding']['emailAddresses'] = [ $this->formData['target'] ];
|
|
|
} else {
|
|
} else {
|
|
|
$account['emailForwarding']['mode'] = 'UForwardNone';
|
|
$account['emailForwarding']['mode'] = 'UForwardNone';
|
|
|
|
|
+ $account['emailForwarding']['emailAddresses'] = [];
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
$fields['firstName'] = $this->formData['firstname'];
|
|
$fields['firstName'] = $this->formData['firstname'];
|