Code

Fixed problem with tagged objects
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 10 Jul 2006 11:30:38 +0000 (11:30 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 10 Jul 2006 11:30:38 +0000 (11:30 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4073 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_printGeneric.inc

index 830f81e4499532d94eb86c94d1a66530e2e9c396..f153ff221a550481153f1aa12127955734183abf 100644 (file)
@@ -712,6 +712,10 @@ class printgeneric extends plugin
       $this->attrs['gotoGroupAdminPrinter'][]=$mem['cn'][0];
     }
 
+    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'){