From: cajus Date: Fri, 19 Jan 2007 08:31:53 +0000 (+0000) Subject: Fixed copy'n paste with existing unit-tags X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=04f3bb42f92dff5004a819bc0394c315cc01df69;p=gosa.git Fixed copy'n paste with existing unit-tags git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5586 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/fai/class_faiPartitionTable.inc b/plugins/admin/fai/class_faiPartitionTable.inc index 793475456..d85152d51 100644 --- a/plugins/admin/fai/class_faiPartitionTable.inc +++ b/plugins/admin/fai/class_faiPartitionTable.inc @@ -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")); }