From: hickert Date: Fri, 15 Sep 2006 09:01:27 +0000 (+0000) Subject: Updated usertabs, forward 'uid' to connectivity plugins X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=6d35741489403a5fdfffb3378b5f588cbac027c2;p=gosa.git Updated usertabs, forward 'uid' to connectivity plugins git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4687 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/users/tabs_user.inc b/plugins/admin/users/tabs_user.inc index ce7cf00fb..b4d52568d 100644 --- a/plugins/admin/users/tabs_user.inc +++ b/plugins/admin/users/tabs_user.inc @@ -22,13 +22,21 @@ class usertabs extends tabs $baseobject= $this->by_object['user']; foreach ($this->by_object as $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; + } + } + } + /* 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; } /* Copy mail if needed */ @@ -38,6 +46,8 @@ class usertabs extends tabs } } + $this->by_object[$name]= $obj; + /* Update parent in base object */ $this->by_object['user']->parent= &$this; }