Code

Set attribute user::new_dn to ensure that is not empty.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 26 Sep 2007 09:15:31 +0000 (09:15 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 26 Sep 2007 09:15:31 +0000 (09:15 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@7407 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/users/tabs_user.inc
plugins/personal/generic/class_user.inc

index eaf50767e52b0a35e1e33206473216eeb87b7cc4..5620ef066b7e310b4d07820690a75c8977a2bbab 100644 (file)
@@ -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)){
 
index 8e1fdc0264e4026fe7803f24146658ae1267eca5..f6147405de6a0b43f84ecb81bfc7fdc5d11884d4 100644 (file)
@@ -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'])){