From: cajus Date: Thu, 28 Jan 2010 14:00:34 +0000 (+0000) Subject: Updated listing X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=b97a52583cc8c9c1605d98b42a14d47fe259b01c;p=gosa.git Updated listing git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15419 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/class_listing.inc b/gosa-core/include/class_listing.inc index b615cf826..b91c063ee 100644 --- a/gosa-core/include/class_listing.inc +++ b/gosa-core/include/class_listing.inc @@ -504,7 +504,9 @@ class listing { if (preg_match('/^department_([0-9]+)$/', validate($_GET['act']), $match)){ if (isset($this->departments[$match[1]])){ $this->base= $this->departments[$match[1]]['dn']; - $this->baseSelector->setBase($this->base); + if ($this->baseMode) { + $this->baseSelector->setBase($this->base); + } session::global_set("CurrentMainBase", $this->base); } } @@ -593,7 +595,9 @@ class listing { function setBase($base) { $this->base= $base; - $this->baseSelector->setBase($this->base); + if ($this->baseMode) { + $this->baseSelector->setBase($this->base); + } } @@ -1289,7 +1293,7 @@ class listing { } // Populate base selector if already present - if ($this->baseSelector) { + if ($this->baseSelector && $this->baseMode) { $this->baseSelector->setBases($this->bases); } }