From: hickert Date: Tue, 23 May 2006 06:52:02 +0000 (+0000) Subject: Fixed gosaUnitTag for incomming objects X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=01565d172907afa834876e48bb4522bb62860fff;p=gosa.git Fixed gosaUnitTag for incomming objects git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3496 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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){