From b130a469e86d937a382fac5864219c190f2a6e36 Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 13 Jun 2006 08:41:30 +0000 Subject: [PATCH] Fixed base generation git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3797 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/class_plugin.inc | 4 ++-- plugins/admin/users/class_userManagement.inc | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/include/class_plugin.inc b/include/class_plugin.inc index b87216703..2a34d2c55 100644 --- a/include/class_plugin.inc +++ b/include/class_plugin.inc @@ -1018,7 +1018,7 @@ class plugin /* Collect some infos */ $base = $this->config->current['BASE']; $snap_base = $tmp['SNAPSHOT_BASE']; - $base_of_object = dn2base($this->dn); + $base_of_object = preg_replace ('/^[^,]+,/i', '', $this->dn); $new_base = preg_replace("/".normalizePreg($base)."$/","",$base_of_object).$snap_base; /* Create object */ @@ -1102,7 +1102,7 @@ class plugin /* Prepare bases and some other infos */ $base = $this->config->current['BASE']; $snap_base = $tmp['SNAPSHOT_BASE']; - $base_of_object = dn2base($dn); + $base_of_object = preg_replace ('/^[^,]+,/i', '', $dn); $new_base = preg_replace("/".normalizePreg($base)."$/","",$base_of_object).$snap_base; $tmp = array(); diff --git a/plugins/admin/users/class_userManagement.inc b/plugins/admin/users/class_userManagement.inc index 517ef7887..ebe79b496 100644 --- a/plugins/admin/users/class_userManagement.inc +++ b/plugins/admin/users/class_userManagement.inc @@ -852,7 +852,6 @@ class userManagement extends plugin } }else{ $this->dn = $this->usertab->dn; - echo $this->dn; $this->create_snapshot("snapshot",$this->usertab->CurrentDescription); $this->usertab = NULL; } -- 2.30.2