|
@@ -127,10 +127,17 @@ class EditAccountDataProvider extends BaseDataProvider
|
|
|
$this->data['target'] = $account[0]['emailForwarding']['emailAddresses'][0];
|
|
$this->data['target'] = $account[0]['emailForwarding']['emailAddresses'][0];
|
|
|
}
|
|
}
|
|
|
$lang = di('lang');
|
|
$lang = di('lang');
|
|
|
- $this->availableValues['status'] = [
|
|
|
|
|
- Kerio::ACC_STATUS_ACTIVE => $lang->absoluteT('kerio','account','status','active'),
|
|
|
|
|
- Kerio::ACC_STATUS_CLOSED => $lang->absoluteT('kerio','account','status','closed')
|
|
|
|
|
- ];
|
|
|
|
|
|
|
+ if ($this->data['status'] == 1) {
|
|
|
|
|
+ $this->availableValues['status'] = [
|
|
|
|
|
+ Kerio::ACC_STATUS_ACTIVE => $lang->absoluteT('kerio','account','status','active'),
|
|
|
|
|
+ Kerio::ACC_STATUS_CLOSED => $lang->absoluteT('kerio','account','status','closed')
|
|
|
|
|
+ ];
|
|
|
|
|
+ } else {
|
|
|
|
|
+ $this->availableValues['status'] = [
|
|
|
|
|
+ Kerio::ACC_STATUS_CLOSED => $lang->absoluteT('kerio','account','status','closed'),
|
|
|
|
|
+ Kerio::ACC_STATUS_ACTIVE => $lang->absoluteT('kerio','account','status','active')
|
|
|
|
|
+ ];
|
|
|
|
|
+ }
|
|
|
$this->availableValues['unit'] = [
|
|
$this->availableValues['unit'] = [
|
|
|
'MegaBytes' => 'MB',
|
|
'MegaBytes' => 'MB',
|
|
|
'GigaBytes' => 'GB',
|
|
'GigaBytes' => 'GB',
|