summaryrefslogtreecommitdiff
path: root/lib/kolab_api_service.php
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2013-09-11 13:07:17 (GMT)
committerAleksander Machniak <alec@alec.pl>2013-09-11 13:07:17 (GMT)
commit35e100a781299b7b497d8f5d836a8b03ad0ee918 (patch)
tree378585b0c33badbdf9846effcdae23f06102cc71 /lib/kolab_api_service.php
parent7c4f566db4786079c30f9a6ec6428cd07364b4cb (diff)
downloadkolab-wap-35e100a781299b7b497d8f5d836a8b03ad0ee918.tar.gz
Fix inetdomainstatus - changed field to select with options: '', 'active', 'suspended' (Bug #2202)
Diffstat (limited to 'lib/kolab_api_service.php')
-rw-r--r--lib/kolab_api_service.php28
1 files changed, 4 insertions, 24 deletions
diff --git a/lib/kolab_api_service.php b/lib/kolab_api_service.php
index 4d2f9ef..a154f7d 100644
--- a/lib/kolab_api_service.php
+++ b/lib/kolab_api_service.php
@@ -80,30 +80,10 @@ abstract class kolab_api_service
if (empty($object_types[$type_id])) {
if ($object_name == 'domain') {
- $result = array(
- 'auto_form_fields' => array(),
- 'form_fields' => array(
- 'aci' => array(
- 'type' => 'list',
- 'optional' => true,
- ),
- 'associateddomain' => array(
- 'type' => 'list'
- ),
- 'inetdomainbasedn' => array(
- 'optional' => true,
- ),
- 'inetdomainstatus' => array(
- 'optional' => true,
- ),
- ),
- 'fields' => array(
- 'objectclass' => array(
- 'top',
- 'domainrelatedobject',
- 'inetdomain',
- ),
- ),
+ $result = kolab_api_service_domain_types::$DEFAULT_TYPE_ATTRS;
+ $result['form_fields']['aci'] = array(
+ 'type' => 'list',
+ 'optional' => true,
);
return $result;