|
|
@@ -104,7 +104,7 @@ class EditRessourceDataProvider extends BaseDataProvider
|
|
|
$this->data['name'] = $ressource[0]['name'];
|
|
|
$this->data['domain'] = $this->getWhmcsParamByKey('domain');
|
|
|
$this->data['status'] = $ressource[0]['isEnabled'] == true ? Kerio::ACC_STATUS_ACTIVE : Kerio::ACC_STATUS_CLOSED;
|
|
|
- $this->data['type'] = $ressource[0]['type'] === 'Room' ? di('lang')->absoluteT('kerio','ressource','type','location') : di('lang')->absoluteT('kerio','ressource','type','equipment');
|
|
|
+ $this->data['type'] = $ressource[0]['type'] === 'Room' ? Kerio::RES_TYPE_LOCATION : Kerio::RES_TYPE_EQUIPMENT;
|
|
|
$this->data['description'] = $ressource[0]['description'];
|
|
|
$this->data['manager'] = $ressource[0]['manager']['name'] . '@' . $ressource[0]['manager']['domainName'];
|
|
|
|