From 68503ecbb4d310b61ef8f1f32003fc739bacb237 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 20 Apr 2007 12:08:16 +0000 Subject: [PATCH] Divlist changes MultiSelectWindow -> Fixed style settings for automatically added departments git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6156 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/class_MultiSelectWindow.inc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/include/class_MultiSelectWindow.inc b/include/class_MultiSelectWindow.inc index c66d8f8f0..18d1558d4 100644 --- a/include/class_MultiSelectWindow.inc +++ b/include/class_MultiSelectWindow.inc @@ -672,15 +672,14 @@ class MultiSelectWindow{ $row[]=$field2=array("string"=>sprintf($linkopen,base64_encode($key),$val), "attach" => "style=''"); if($numtabs > 2){ - for($i = 3 ; $i <=$numtabs;$i++){ - if(isset( $this->array_Header[$i]['attach'])){ - $row[] = array("string"=>" ","attach" => $this->array_Header[$i]['attach']); + for($i = 2 ; $i < $numtabs;$i++){ + if(isset( $this->array_Header[$i + $empty_tabs_in_front]['attach'])){ + $row[] = array("string"=>" ","attach" => $this->array_Header[$i + $empty_tabs_in_front]['attach']); }else{ $row[] = array("string"=>" "); } } } - $this->AddElement($row); } } -- 2.30.2