Code

Reaaded ogrup stuff
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 24 Feb 2010 14:46:24 +0000 (14:46 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 24 Feb 2010 14:46:24 +0000 (14:46 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15697 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])){