From 606e5e5487fb02b9558ee0e7d23d91f2eefde8ae Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 26 Sep 2007 09:15:31 +0000 Subject: [PATCH] Set attribute user::new_dn to ensure that is not empty. git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@7407 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/users/tabs_user.inc | 5 ----- plugins/personal/generic/class_user.inc | 2 ++ 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/plugins/admin/users/tabs_user.inc b/plugins/admin/users/tabs_user.inc index eaf50767e..5620ef066 100644 --- a/plugins/admin/users/tabs_user.inc +++ b/plugins/admin/users/tabs_user.inc @@ -92,11 +92,6 @@ class usertabs extends tabs $baseobject= $this->by_object['user']; if ($this->dn != 'new'){ - - /* Call user->check(); to enforce a value for new_dn */ - if($baseobject->new_dn == ""){ - $baseobject->check(); - } $new_dn= $baseobject->new_dn; if (strtolower($this->dn) != strtolower($new_dn)){ diff --git a/plugins/personal/generic/class_user.inc b/plugins/personal/generic/class_user.inc index 8e1fdc026..f6147405d 100644 --- a/plugins/personal/generic/class_user.inc +++ b/plugins/personal/generic/class_user.inc @@ -111,6 +111,8 @@ class user extends plugin /* Load base attributes */ plugin::plugin ($config, $dn); + $this->new_dn = $dn; + if ($this->config->current['GOVERNMENTMODE']){ /* Fix public visible attribute if unset */ if (!isset($this->attrs['publicVisible'])){ -- 2.30.2