From: cajus Date: Tue, 22 Aug 2006 09:37:13 +0000 (+0000) Subject: Fixed initial saving of objectgroups X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e9f2caf5ea6297d9f14adeb07c4c1f0ae160a00d;p=gosa.git Fixed initial saving of objectgroups git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@4498 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/ogroups/class_termgroup.inc b/plugins/admin/ogroups/class_termgroup.inc index fab217ef8..046a6906d 100644 --- a/plugins/admin/ogroups/class_termgroup.inc +++ b/plugins/admin/ogroups/class_termgroup.inc @@ -267,25 +267,12 @@ class termgroup extends plugin /* 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")); }