summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 24c361f)
raw | patch | inline | side by side (parent: 24c361f)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 22 Aug 2006 09:37:13 +0000 (09:37 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 22 Aug 2006 09:37:13 +0000 (09:37 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@4498 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/ogroups/class_termgroup.inc | patch | blob | history |
index fab217ef85a12c2bbd286dea9f3ecb4e82f5ffd1..046a6906d9b333846893299bf68e44fd8a6a085c 100644 (file)
/* Write back to ldap */
$ldap= $this->config->get_ldap_link();
- if ($this->orig_dn == 'new'){
- $ldap->cd($this->config->current['BASE']);
- $ldap->create_missing_trees(preg_replace('/^[^,]+,/', '', $this->dn));
- $ldap->cd($this->dn);
- $ldap->add($this->attrs);
- if(!$this->didAction){
- $this->handle_post_events("add");
- }
- } else {
- if ($this->orig_dn != $this->dn){
- $this->move($this->orig_dn, $this->dn);
- }
- $ldap->cd($this->dn);
- $this->cleanup();
- $ldap->modify ($this->attrs);
+ $ldap->cd($this->dn);
+ $this->cleanup();
+ $ldap->modify ($this->attrs);
- if(!$this->didAction){
- $this->handle_post_events("modify");
- }
+ if(!$this->didAction){
+ $this->handle_post_events("modify");
}
show_ldap_error($ldap->get_error(), _("Saving workstation failed"));
}