summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a9f5b1a)
raw | patch | inline | side by side (parent: a9f5b1a)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 17 Jan 2007 09:01:32 +0000 (09:01 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 17 Jan 2007 09:01:32 +0000 (09:01 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5580 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/fai/class_faiPackage.inc | patch | blob | history |
index 2768e8b404d86118edf2d6182ca40c7d19047aa4..9e092309b90efa1bc32e34583db99db7af668586 100644 (file)
if((isset($attrs['objectClass'])) && (in_array_ics("gosaAdministrativeUnitTag",$attrs['objectClass']))){
$pkgattrs['objectClass'][] = "gosaAdministrativeUnitTag";
}
-
- if($ldap->count()!=0){
- $ldap->cd($pkgdn);
- $this->cleanup();
- $ldap->modify ($pkgattrs);
+
+ if(in_array($pkgattrs['FAIvariableType'],array("boolean","multiselect","password","select","string","text"))){
+ if($ldap->count()!=0){
+ $ldap->cd($pkgdn);
+ $this->cleanup();
+ $ldap->modify ($pkgattrs);
- }else{
- $ldap->cd($this->config->current['BASE']);
- $ldap->create_missing_trees(preg_replace('/^[^,]+,/', '', $pkgdn));
- $ldap->cd($pkgdn);
- $ldap->add($pkgattrs);
+ }else{
+ $ldap->cd($this->config->current['BASE']);
+ $ldap->create_missing_trees(preg_replace('/^[^,]+,/', '', $pkgdn));
+ $ldap->cd($pkgdn);
+ $ldap->add($pkgattrs);
+ }
+ show_ldap_error($ldap->get_error(), _("Saving FAI package entry failed"));
}
- show_ldap_error($ldap->get_error(), _("Saving FAI package entry failed"));
/* Handle tagging */
$this->handle_object_tagging($pkgdn, $this->gosaUnitTag);