From b1e9d1ab2742f8a0524e7e2ac970cf28b92e5628 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 19 Apr 2007 08:25:39 +0000 Subject: [PATCH] Fixed department add, in divlists. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6113 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/class_MultiSelectWindow.inc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/include/class_MultiSelectWindow.inc b/include/class_MultiSelectWindow.inc index 5f23bdeb1..c66d8f8f0 100644 --- a/include/class_MultiSelectWindow.inc +++ b/include/class_MultiSelectWindow.inc @@ -635,6 +635,11 @@ class MultiSelectWindow{ } natcasesort($this->departments); + + if($empty_tabs_in_front){ +# $numtabs -= $empty_tabs_in_front; + } + /* Add deps to this dialog object list */ foreach($this->departments as $key=> $val){ @@ -661,14 +666,13 @@ class MultiSelectWindow{ for($i = 0; $i < $empty_tabs_in_front ; $i ++){ $row[] = array("string"=>" ", "attach" => "style='text-align:center;width:20px;'"); } - $numtabs -= $empty_tabs_in_front; } $row[]=$field1=array("string"=>"department","attach"=>"style='text-align:center;width:20px;'"); $row[]=$field2=array("string"=>sprintf($linkopen,base64_encode($key),$val), "attach" => "style=''"); if($numtabs > 2){ - for($i = 2 ; $i <$numtabs;$i++){ + for($i = 3 ; $i <=$numtabs;$i++){ if(isset( $this->array_Header[$i]['attach'])){ $row[] = array("string"=>" ","attach" => $this->array_Header[$i]['attach']); }else{ -- 2.30.2