Code

Updated phoneGeneric saving
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 26 Sep 2007 08:56:28 +0000 (08:56 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 26 Sep 2007 08:56:28 +0000 (08:56 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7406 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/users/tabs_user.inc

index d4219a42b4ec706297126780f6512c99a3fa2f04..9e9389f954d639633ce7c3815c9bf0b1994bfce8 100644 (file)
@@ -98,6 +98,11 @@ 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)){