From 5e129eedf889b180aba6b6637ced857ca68d9dc6 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 15 Sep 2006 06:48:03 +0000 Subject: [PATCH] Assign uid to connectivity-plugins git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@4677 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/users/tabs_user.inc | 25 ++++++++++++++++++------- 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/plugins/admin/users/tabs_user.inc b/plugins/admin/users/tabs_user.inc index 5ac4fb7b3..c37ce5cba 100644 --- a/plugins/admin/users/tabs_user.inc +++ b/plugins/admin/users/tabs_user.inc @@ -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; } -- 2.30.2