From: cajus Date: Tue, 2 Aug 2005 08:05:56 +0000 (+0000) Subject: Fixed macro saving for other bases X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=359a8c8c989e6ddfcb36616a50fe5eef8a9face8;p=gosa.git Fixed macro saving for other bases git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1042 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/gofon/macro/class_gofonMacro.inc b/plugins/gofon/macro/class_gofonMacro.inc index 7be9c1a28..6ac7d11dc 100755 --- a/plugins/gofon/macro/class_gofonMacro.inc +++ b/plugins/gofon/macro/class_gofonMacro.inc @@ -367,7 +367,6 @@ class macro extends plugin $ldap= $this->config->get_ldap_link(); $ldap->cat($this->dn); $a= $ldap->fetch(); - if(isset($this->orig_cn)){ $this-> generate_mysql_entension_entries(true,false,$this->orig_cn); @@ -381,8 +380,8 @@ class macro extends plugin $ldap->modify($this->attrs); $this->handle_post_events("modify"); } else { - $ldap->cd($this->dn); - $ldap->create_missing_trees( $this->dn); + $ldap->cd($this->config->current['BASE']); + $ldap->create_missing_trees(preg_replace('/^[^,]+,/', '', $this->dn)); $ldap->cd($this->dn); $ldap->add($this->attrs); $this->handle_post_events("add");