Code

Updated parent handling for connectivity extensions
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 14 Dec 2010 14:51:02 +0000 (14:51 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 14 Dec 2010 14:51:02 +0000 (14:51 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.7@20560 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/connectivity/personal/connectivity/class_connectivity.inc

index 27a866423bddb75c84d5cb2b5826c734030f0ea7..f1be45aa0e325c7886cf5f4ce8e2664b1b3cca2f 100644 (file)
@@ -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;