Code

Assign uid to connectivity-plugins
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 15 Sep 2006 06:48:03 +0000 (06:48 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 15 Sep 2006 06:48:03 +0000 (06:48 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@4677 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/users/tabs_user.inc

index 5ac4fb7b3a1321b791928caf86904e9f3a2b59a9..c37ce5cba052fd2d927210113a7697ba80abcdaa 100644 (file)
@@ -18,13 +18,13 @@ class usertabs extends tabs
     $baseobject= $this->by_object['user'];
     foreach ($this->by_object as $name => $obj){
 
-      /* Don't touch base object */
-      if ($name != 'user'){
-        $obj->parent= &$this;
-        $obj->uid= $baseobject->uid;
-        $obj->sn= $baseobject->uid;
-        $obj->givenName= $baseobject->uid;
-        $this->by_object[$name]= $obj;
+      /* Adding uid to sub plugins of connectivity */
+      if($name == "connectivity"){
+        foreach ($obj->plugin_name as $plg_name){
+          if(isset($obj->plugin[$plg_name]->uid)){
+            $obj->plugin[$plg_name]->uid = $baseobject->uid;
+          }
+        }
       }
 
       /* Copy mail if needed */
@@ -34,6 +34,17 @@ class usertabs extends tabs
         }
       }
 
+      /* Don't touch base object */
+      if ($name != 'user'){
+        $obj->parent= &$this;
+        $obj->uid= $baseobject->uid;
+        $obj->sn= $baseobject->uid;
+        $obj->givenName= $baseobject->uid;
+      }
+
+      /* Store changes */
+      $this->by_object[$name]= $obj;
+
       /* Update parent in base object */
       $this->by_object['user']->parent= &$this;
     }