From 7954277b6488657388569ab09a48011ba8a2e12d Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 27 Jul 2010 09:59:41 +0000 Subject: [PATCH] Fixed service handling. -If all services were used, the list rendering was broken. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19162 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../systems/admin/systems/class_serverService.inc | 13 +++++++++++++ .../systems/admin/systems/serverService-list.xml | 13 +------------ 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/gosa-plugins/systems/admin/systems/class_serverService.inc b/gosa-plugins/systems/admin/systems/class_serverService.inc index 1256d1be8..0564f7b84 100644 --- a/gosa-plugins/systems/admin/systems/class_serverService.inc +++ b/gosa-plugins/systems/admin/systems/class_serverService.inc @@ -118,6 +118,19 @@ class ServerService extends management $desc = $services[$name]; $serviceList.= sprintf($template, $name,_($desc)); } + + if(!empty($serviceList)){ + $serviceList = " + + sub + images/lists/element.png[new] + + {$serviceList} + + "; + + } + $contents = preg_replace("/%SERVICES%/",$serviceList, $contents); $headpage = new listing($contents,TRUE); $headpage->registerElementFilter("filterServiceStatus", "ServerService::filterServiceStatus"); diff --git a/gosa-plugins/systems/admin/systems/serverService-list.xml b/gosa-plugins/systems/admin/systems/serverService-list.xml index ddd3132cb..8ee8fd581 100644 --- a/gosa-plugins/systems/admin/systems/serverService-list.xml +++ b/gosa-plugins/systems/admin/systems/serverService-list.xml @@ -47,18 +47,7 @@ - - sub - images/lists/element.png[new] - - - %SERVICES% - - - - - separator - + %SERVICES% remove -- 2.30.2