diff --git a/gosa-core/plugins/admin/ogroups/tabs_ogroups.inc b/gosa-core/plugins/admin/ogroups/tabs_ogroups.inc
index 3cbeccd92639f7a3222adbc534e5b9e0e2c57cf3..6c327ae34fa536a23ae00f013ffe8aa35d99fdea 100644 (file)
unset($this->by_object['termgroup']);
unset($this->by_name['termgroup']);
}
+ if(!preg_match("/T/",$objects) &&(isset($this->by_object['termservice']))){
+ $this->by_object['termservice']->remove_from_parent();
+ unset($this->by_object['termservice']);
+ unset($this->by_name['termservice']);
+ }
/* Remove ws tabs, if theres no ws left in the object list */
if((!preg_match("/W/",$objects))&&(isset($this->by_object['workservice']))){
$this->by_object['termgroup']->parent= &$this;
}
}
-
+ if(preg_match("/T/",$objects) &&(!isset($this->by_object['termservice']))){
+ if(!isset($this->by_object['termservice'])){
+ $this->by_name['termservice']= _("Devices");
+ $this->by_object['termservice']= new termservice($this->config, $this->dn,$this->by_object['ogroup']);
+ }
+ }
+
/* Add Workstation tabs */
if((preg_match("/W/",$objects))&&(!isset($this->by_object['workservice']))){
$this->by_name['workservice']= _("Devices");
$this->by_object['termgroup']= new termgroup($this->config, $this->dn);
$this->by_object['termgroup']->parent= &$this;
+ $this->by_name['termservice']= _("Devices");
+ $this->by_object['termservice']= new termservice($this->config, $this->dn,$this->by_object['ogroup']);
break;
case "U":