From: hickert Date: Mon, 25 Oct 2010 08:29:37 +0000 (+0000) Subject: Updated objectListing X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=90747e5966f031a8ab2ac19256c26cc037c838c2;p=gosa.git Updated objectListing git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20136 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/plugins/admin/newConfigManagement/class_ConfigManagementListing.inc b/gosa-core/plugins/admin/newConfigManagement/class_ConfigManagementListing.inc index acc0c4f0e..97504a2e0 100644 --- a/gosa-core/plugins/admin/newConfigManagement/class_ConfigManagementListing.inc +++ b/gosa-core/plugins/admin/newConfigManagement/class_ConfigManagementListing.inc @@ -59,11 +59,11 @@ class ConfigManagementListing extends management $this->itemSelector->update(TRUE); } + function renderList() { session::set('DEVICE_ITEMS', array()); - $filter = $this->getFilter(); $headpage = $this->getHeadpage(); $headpage->update(); $smarty = get_smarty(); @@ -103,8 +103,6 @@ class ConfigManagementListing extends management } $this->setFilter($filter); - - // Load service xml file and fill in placeholders $contents = file_get_contents(get_template_path("DeviceConfig-list.xml", true)); $contents = preg_replace("/%TYPES%/", $this->objectTypeStr, $contents); diff --git a/gosa-core/plugins/admin/newConfigManagement/class_newConfigManagement.inc b/gosa-core/plugins/admin/newConfigManagement/class_newConfigManagement.inc index 4d5822c88..23b877d27 100644 --- a/gosa-core/plugins/admin/newConfigManagement/class_newConfigManagement.inc +++ b/gosa-core/plugins/admin/newConfigManagement/class_newConfigManagement.inc @@ -133,6 +133,7 @@ class newConfigManagement extends plugin */ function execute() { + // Get the selected release and store it in a session variable // to allow the configFilter to access it and display the // packages and items. @@ -141,7 +142,7 @@ class newConfigManagement extends plugin session::set('CONFIG_ITEM', $item); $this->listing->setListingTypes($this->getListingTypes()); - return($this->listing->renderList()); + return($this->listing->execute()); } @@ -235,9 +236,15 @@ class newConfigManagement extends plugin $types['Release']['objectClass'] = 'Release'; $types['Release']['label'] = _('Release'); - $types['Release']['image'] = 'images/lists/edit.png'; + $types['Release']['image'] = 'images/lists/delete.png'; $types['Release']['category'] = 'Device'; $types['Release']['class'] = 'Device'; + + $types['Component']['objectClass'] = 'Component'; + $types['Component']['label'] = _('Component'); + $types['Component']['image'] = 'images/lists/edit.png'; + $types['Component']['category'] = 'Device'; + $types['Component']['class'] = 'Device'; return($types); }