From 26e6b3fb3fe3965db81a8316de7026d59f9df792 Mon Sep 17 00:00:00 2001 From: cajus Date: Fri, 28 Aug 2009 11:13:23 +0000 Subject: [PATCH] Quirks for list display git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14157 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_listing.inc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gosa-core/include/class_listing.inc b/gosa-core/include/class_listing.inc index 0f3a8594e..28d2165ed 100644 --- a/gosa-core/include/class_listing.inc +++ b/gosa-core/include/class_listing.inc @@ -49,6 +49,7 @@ class listing { var $snapshotHandler= null; var $exporter= array(); var $exportColumns= array(); + var $useSpan= false; function listing($filename) @@ -286,6 +287,7 @@ class listing { $deps= 0; // Draw department browser if configured and we're not in sub mode + $this->useSpan= false; if ($this->departmentBrowser && $this->filter->scope != "sub") { // Fill with department browser if configured this way $departmentIterator= new departmentSortIterator($this->departments, $this->sortDirection[$this->sortColumn]); @@ -303,6 +305,7 @@ class listing { $colspan= 1; if (isset($config['span'])){ $colspan= $config['span']; + $this->useSpan= true; } $result.="colprops[$index]." class='list1'>".$this->renderCell($config['value'], $entry, $row).""; $rest-= $colspan; @@ -356,7 +359,7 @@ class listing { } // Need to fill the list if it's not full (nobody knows why this is 22 ;-)) - $emptyListStyle= (count($this->entries) + $deps == 0)?"border:0;":""; + $emptyListStyle= (count($this->entries) + (($this->useSpan && count($this->entries))?$deps:0) == 0)?"border:0;":""; if ((count($this->entries) + $deps) < 22) { $result.= ""; for ($i= 0; $i<$this->numColumns; $i++) { -- 2.30.2