Code

Fixed phoneGeneric saving.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 26 Sep 2007 08:55:30 +0000 (08:55 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 26 Sep 2007 08:55:30 +0000 (08:55 +0000)
-->Trying to overwrite , which already exists

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@7405 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/users/tabs_user.inc

index 5620ef066b7e310b4d07820690a75c8977a2bbab..eaf50767e52b0a35e1e33206473216eeb87b7cc4 100644 (file)
@@ -92,6 +92,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)){