From: hickert Date: Tue, 9 May 2006 07:48:57 +0000 (+0000) Subject: Fixed ogroup problem X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c7e1cd03984a19a5b64543a65a8271097fd0b06c;p=gosa.git Fixed ogroup problem git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3227 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/systems/class_systemManagement.inc b/plugins/admin/systems/class_systemManagement.inc index 89286db37..c3ee3c88d 100644 --- a/plugins/admin/systems/class_systemManagement.inc +++ b/plugins/admin/systems/class_systemManagement.inc @@ -96,6 +96,7 @@ class systems extends plugin if(isset($_POST['SystemTypeChoosen'])){ $s_action = "SelectedSystemType"; $s_entry = $_POST['SystemType']; + $_SESSION['SelectedSystemType']['ogroup'] = $_POST['ObjectGroup']; $this->systab = NULL; } @@ -408,6 +409,7 @@ class systems extends plugin * If this is done, delete the old incoming entry... it is still there, because this is a new * entry and not an edited one, so we will delete it. */ + if(isset($_SESSION['SelectedSystemType'])){ $SelectedSystemType= $_SESSION['SelectedSystemType']; unset($_SESSION['SelectedSystemType']); @@ -415,8 +417,8 @@ class systems extends plugin $og = new ogroup($this->config,$SelectedSystemType['ogroup']); if($og){ $og->AddDelMembership($this->systab->dn); + $og->save(); } - $og->save(); } if(!isset($ldap)){ $ldap = $this->config->get_ldap_link();