From c7e1cd03984a19a5b64543a65a8271097fd0b06c Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 9 May 2006 07:48:57 +0000 Subject: [PATCH] Fixed ogroup problem git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3227 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/systems/class_systemManagement.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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(); -- 2.30.2