From 01565d172907afa834876e48bb4522bb62860fff Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 23 May 2006 06:52:02 +0000 Subject: [PATCH] Fixed gosaUnitTag for incomming objects git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3496 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/systems/class_workstationGeneric.inc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/admin/systems/class_workstationGeneric.inc b/plugins/admin/systems/class_workstationGeneric.inc index dad2c0e87..7097a145e 100644 --- a/plugins/admin/systems/class_workstationGeneric.inc +++ b/plugins/admin/systems/class_workstationGeneric.inc @@ -368,6 +368,10 @@ class workgeneric extends plugin } } + if(($this->gosaUnitTag) && (!in_array_ics("gosaAdministrativeUnitTag",$this->attrs['objectClass']))){ + $this->attrs['objectClass'][] = "gosaAdministrativeUnitTag"; + } + /* Write back to ldap */ $ldap= $this->config->get_ldap_link(); if ($this->orig_dn == 'new'){ @@ -385,7 +389,6 @@ class workgeneric extends plugin } $ldap->cd($this->dn); $this->cleanup(); -// $this->attrs['gosaUnitTag']= array(); $ldap->modify ($this->attrs); if(!$this->didAction){ -- 2.30.2