From 5c1aa7a0cd41df3fe93e48a879d624b7c2c3bf6b Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 23 Nov 2006 11:35:38 +0000 Subject: [PATCH] Fixed tab check && printer initialisation git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5211 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/systems/class_printGeneric.inc | 2 +- plugins/admin/systems/tabs_workstation.inc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/admin/systems/class_printGeneric.inc b/plugins/admin/systems/class_printGeneric.inc index 4fb90cd28..b38825df3 100644 --- a/plugins/admin/systems/class_printGeneric.inc +++ b/plugins/admin/systems/class_printGeneric.inc @@ -68,7 +68,7 @@ class printgeneric extends plugin $this->dn= preg_replace("/ou=terminals,/","ou=printers,",$this->dn); } - if($this->BelongsTo == "Workstation"){ + if($this->BelongsTo == "Workstation" || $this->BelongsTo == "WorkstationTemplate"){ $this->dn= preg_replace("/ou=workstations,/","ou=printers,",$this->dn); } diff --git a/plugins/admin/systems/tabs_workstation.inc b/plugins/admin/systems/tabs_workstation.inc index 7dcafd2c8..8716247cd 100644 --- a/plugins/admin/systems/tabs_workstation.inc +++ b/plugins/admin/systems/tabs_workstation.inc @@ -31,7 +31,7 @@ class worktabs extends tabs tabs::save_object($save_current); /* Assign current cn to all other plugins */ - $baseobject= $this->by_object['termgeneric']; + $baseobject= $this->by_object['workgeneric']; foreach ($this->by_object as $key => $obj){ $this->by_object[$key]->dn= $this->dn; $this->by_object[$key]->cn= $baseobject->cn; -- 2.30.2