Code

Fixed gosaUnitTag for incomming objects
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 23 May 2006 06:52:02 +0000 (06:52 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 23 May 2006 06:52:02 +0000 (06:52 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3496 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_workstationGeneric.inc

index dad2c0e87ed5163b094699ccf47491b321665b99..7097a145e11b7c84af6ecf165ca389b9c1126227 100644 (file)
@@ -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){