From 5a01eb88b79553d817627af19dc01a52b8e10816 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 8 Feb 2008 10:57:47 +0000 Subject: [PATCH] Fixed save. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8777 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../groups/apps/class_groupApplication2.inc | 22 ++++++------------- 1 file changed, 7 insertions(+), 15 deletions(-) diff --git a/gosa-plugins/goto/admin/groups/apps/class_groupApplication2.inc b/gosa-plugins/goto/admin/groups/apps/class_groupApplication2.inc index 35e7c25c4..5d4b6dafd 100644 --- a/gosa-plugins/goto/admin/groups/apps/class_groupApplication2.inc +++ b/gosa-plugins/goto/admin/groups/apps/class_groupApplication2.inc @@ -47,7 +47,7 @@ class appgroup2 extends plugin $ret = array(); $release_info = $this->Releases[$this->FAIrelease]; - if(!isset($this->_cache['ReleaseApps'][$release_info['suffix']])){ + if(1 | !isset($this->_cache['ReleaseApps'][$release_info['suffix']])){ $ldap = $this->config->get_ldap_link(); $ldap->cd($this->curbase); @@ -494,7 +494,7 @@ class appgroup2 extends plugin $all = $this->_get_all_entries(); if(isset($all[$folder_id])){ - $folder = $all[$folder_id]; + $folder = &$all[$folder_id]; $entries = $entry['ENTRIES']; $entry['UNIQID'] = uniqid(); @@ -511,7 +511,6 @@ class appgroup2 extends plugin $added = TRUE; $cnt ++; } - $obj['ENTRIES'] = array(); $new[] = $obj; } if(!$added){ @@ -706,20 +705,15 @@ class appgroup2 extends plugin } if($type == "up"){ $cnt --; - } - $this->_add_entry($o_to_sub['UNIQID'],$o_from,$cnt); + + } + $this->_add_entry($o_to_sub['UNIQID'],$o_from,$cnt); /* Removing old */ $tmp = array(); - foreach($o_to['ENTRIES'] as $key => $entry){ - if($entry['UNIQID'] == $from){ - if(!$this->_remove_entry_id($from)){ - return(FALSE); - } - } + if(!$this->_remove_entry_id($from)){ + return(FALSE); } - - $o_from['UNIQID'] = uniqid(); } }else{ @@ -730,8 +724,6 @@ class appgroup2 extends plugin * + Destination ************************/ - echo "Hier"; - /* Removing old */ $o_to = $all[$to]; $o_from = $all[$from]; -- 2.30.2