summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5486a4f)
raw | patch | inline | side by side (parent: 5486a4f)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 11 Feb 2008 14:23:57 +0000 (14:23 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 11 Feb 2008 14:23:57 +0000 (14:23 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8828 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/goto/admin/groups/apps/class_groupApplication2.inc | patch | blob | history |
diff --git a/gosa-plugins/goto/admin/groups/apps/class_groupApplication2.inc b/gosa-plugins/goto/admin/groups/apps/class_groupApplication2.inc
index af4e2145b06b47293fcb9e6a60d287666416e00d..bf9777f5772092a298860a38d2599a3454bc135e 100644 (file)
$o_to = $all[$to];
$o_from = $all[$id];
+
+ if($o_to['PARENT'] == $o_from['UNIQID'] && $dir == "down"){
+ $to = $this->_get_next($to,$o_from['PARENT']);
+ $o_to = $all[$to];
+ }
/* Target is ENTRY && same BASE, just switch */
}
- function _get_next($id)
+ function _get_next($id,$parent = 0)
{
$all_l = $this->_get_entries_for_release($this->FAIrelease);
for($i = 0 ; $i < count($all_l) ; $i ++){
break;
}
}
- while(isset($all_l[$i]) && !in_array($all_l[$i]['TYPE'],array("ENTRY","FOLDER")) && $i < count($all_l)){
- $i++;
+ if($parent != 0){
+ while(isset($all_l[$i]) && $all_l[$i]['PARENT'] != $parent){
+ $i++;
+ }
+ }else{
+ while(isset($all_l[$i]) && !in_array($all_l[$i]['TYPE'],array("ENTRY","FOLDER")) && $i < count($all_l)){
+ $i++;
+ }
}
if(!isset($all_l[$i])){
return(FALSE);