From 6cc9cb08f58130892b4509d414df53cb4577e480 Mon Sep 17 00:00:00 2001 From: cajus Date: Wed, 26 Aug 2009 13:01:56 +0000 Subject: [PATCH] Keep base if baseMode is false git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14142 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_listing.inc | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/gosa-core/include/class_listing.inc b/gosa-core/include/class_listing.inc index 65f039181..156cc7b80 100644 --- a/gosa-core/include/class_listing.inc +++ b/gosa-core/include/class_listing.inc @@ -64,11 +64,15 @@ class listing { } // Set base for filter - $this->base= session::global_get("CurrentMainBase"); - if ($this->base == null) { + if ($this->baseMode) { + $this->base= session::global_get("CurrentMainBase"); + if ($this->base == null) { + $this->base= $config->current['BASE']; + } + $this->refreshBasesList(); + } else { $this->base= $config->current['BASE']; } - $this->refreshBasesList(); // Move footer information $this->showFooter= ($config->get_cfg_value("listSummary") == "true"); @@ -426,7 +430,7 @@ class listing { } // Save base - if (isset($_POST['BASE']) && $this->baseMode == true) { + if (isset($_POST['BASE']) && $this->baseMode) { $base= validate($_POST['BASE']); if (isset($this->bases[$base])) { $this->base= $base; @@ -589,6 +593,10 @@ class listing { function renderBase() { + if (!$this->baseMode) { + return; + } + $result= "