From: hickert Date: Thu, 25 Feb 2010 08:15:31 +0000 (+0000) Subject: Reverted systems patch X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e746750b131d578b3f0c0c3bd8f5bcbb9ad444c9;p=gosa.git Reverted systems patch git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6@15703 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/systems/admin/systems/class_systemManagement.inc b/gosa-plugins/systems/admin/systems/class_systemManagement.inc index 5d8fc6977..770591e84 100644 --- a/gosa-plugins/systems/admin/systems/class_systemManagement.inc +++ b/gosa-plugins/systems/admin/systems/class_systemManagement.inc @@ -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, "Adding system to ogroup"); + } + // Set default system specific attributes foreach (array("workgeneric", "termgeneric") as $cls){ if (isset($this->tabObject->by_object[$cls])){