Code

Fixed copy'n paste with existing unit-tags
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 19 Jan 2007 08:31:53 +0000 (08:31 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 19 Jan 2007 08:31:53 +0000 (08:31 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5586 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/fai/class_faiPartitionTable.inc

index 793475456e3892a6bcb29bda16c5ffcc6c689b43..d85152d5114a7832164364842c7187c0e873e9b6 100644 (file)
@@ -533,6 +533,9 @@ class faiPartitionTable extends plugin
           $ldap->cd($this->config->current['BASE']);
           $ldap->create_missing_trees(preg_replace('/^[^,]+,/', '', $partition_dn));
           $ldap->cd($partition_dn);
+          if (isset($partition_attrs['gosaUnitTag']) && !in_array_ics("gosaAdministrativeUnitTag",$partition_attrs['objectClass'])){
+            $partition_attrs['objectClass'][]= "gosaAdministrativeUnitTag";
+          }
           $ldap->add($partition_attrs);
           show_ldap_error($ldap->get_error(), _("Saving FAI partition table entry failed"));
         }