Code

Reverted systems patch
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 25 Feb 2010 08:15:31 +0000 (08:15 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 25 Feb 2010 08:15:31 +0000 (08:15 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6@15703 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/systems/admin/systems/class_systemManagement.inc

index 5d8fc6977086d991d2a043018b88dd5ad198ce34..770591e848f1d0604259b0b55168424d8f805620 100644 (file)
@@ -870,6 +870,15 @@ class systemManagement extends management
               msg_dialog::display(_("Internal error"), _("Cannot set mode to 'active'!"), ERROR_DIALOG);
             }
 
+            // Update object group membership
+            $og = new ogroup($this->config,$data['OG']);
+            if($og){
+              $og->AddDelMembership($this->tabObject->dn);
+              $og->save();
+              @DEBUG (DEBUG_TRACE, __LINE__, __FUNCTION__, __FILE__,
+                  $og->dn, "<b>Adding system to ogroup</b>");
+            }
+
             // Set default system specific attributes
             foreach (array("workgeneric", "termgeneric") as $cls){
               if (isset($this->tabObject->by_object[$cls])){