From fafbb049fe41d4cbd2f1b73af0f22a401905e3db Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 17 May 2006 09:10:17 +0000 Subject: [PATCH] Display termgroup for WS too git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3385 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/ogroups/tabs_ogroups.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/admin/ogroups/tabs_ogroups.inc b/plugins/admin/ogroups/tabs_ogroups.inc index 9867ffdd2..c4fdeed3b 100644 --- a/plugins/admin/ogroups/tabs_ogroups.inc +++ b/plugins/admin/ogroups/tabs_ogroups.inc @@ -31,7 +31,7 @@ class ogrouptabs extends tabs } /* Remove terminal group, if theres no terminal left in the object list */ - if((!preg_match("/T/",$objects))&&(isset($this->by_object['termgroup']))){ + if(((!preg_match("/T/",$objects)) && (!preg_match("/W/",$objects)))&&(isset($this->by_object['termgroup']))){ $this->by_object['termgroup']->remove_from_parent(); unset($this->by_object['termgroup']); unset($this->by_name['termgroup']); @@ -77,10 +77,10 @@ class ogrouptabs extends tabs } /* Add Terminal tab */ - if((preg_match("/T/",$objects))&&(!isset($this->by_object['termgroup']))){ + if(((preg_match("/T/",$objects)) || (preg_match("/W/",$objects)))&&(!isset($this->by_object['termgroup']))){ require_once("class_termgroup.inc"); if(!isset($this->by_object['termgroup'])){ - $this->by_name['termgroup']= _("Terminals"); + $this->by_name['termgroup']= _("Common settings"); $this->by_object['termgroup']= new termgroup($this->config, $this->dn); $this->by_object['termgroup']->parent= &$this; } -- 2.30.2