From: hickert Date: Tue, 14 Dec 2010 14:51:02 +0000 (+0000) Subject: Updated parent handling for connectivity extensions X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=43155f70c594f3d3bbff52d8803bdfebf2b252c6;p=gosa.git Updated parent handling for connectivity extensions git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.7@20560 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/connectivity/personal/connectivity/class_connectivity.inc b/gosa-plugins/connectivity/personal/connectivity/class_connectivity.inc index 27a866423..f1be45aa0 100644 --- a/gosa-plugins/connectivity/personal/connectivity/class_connectivity.inc +++ b/gosa-plugins/connectivity/personal/connectivity/class_connectivity.inc @@ -86,7 +86,6 @@ class connectivity extends plugin } } - /* Remove checkboxes in single edit mode */ if ($this->parent !== NULL){ foreach ($this->plugin_name as $name){ $this->plugin[$name]->parent= $this->parent; @@ -155,6 +154,13 @@ class connectivity extends plugin /* Save to LDAP */ function save() { + // Append parent to sub-plugins. + if ($this->parent !== NULL){ + foreach ($this->plugin_name as $name){ + $this->plugin[$name]->parent= $this->parent; + } + } + /* Save objects */ foreach ($this->plugin_name as $name){ $this->plugin[$name]->dn= $this->dn; @@ -169,6 +175,13 @@ class connectivity extends plugin function remove_from_parent() { + // Append parent to sub-plugins. + if ($this->parent !== NULL){ + foreach ($this->plugin_name as $name){ + $this->plugin[$name]->parent= $this->parent; + } + } + /* Remove objects */ foreach ($this->plugin_name as $name){ $this->plugin[$name]->dn= $this->dn;