From 22323b830c5a337d92bc0fd86d2217baf8b3359b Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 12 Oct 2009 07:54:05 +0000 Subject: [PATCH] Updated addressbook plugin -There should be at least one department selectable. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14574 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../addressbook/addons/addressbook/class_addressbook.inc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/gosa-plugins/addressbook/addons/addressbook/class_addressbook.inc b/gosa-plugins/addressbook/addons/addressbook/class_addressbook.inc index 59006248c..4ebac0f33 100644 --- a/gosa-plugins/addressbook/addons/addressbook/class_addressbook.inc +++ b/gosa-plugins/addressbook/addons/addressbook/class_addressbook.inc @@ -510,12 +510,10 @@ class addressbook extends plugin /* Create list of readable departments */ $deps = array(); foreach($this->config->idepartments as $dn => $name){ - if( $this->acl_is_readable($dn)){ + if( $this->acl_is_readable($dn) || $dn == $this->config->current['BASE']){ $deps[$dn] = $name; } } - - $this->base = $phonefilter['search_base']; $smarty->assign("deplist", $deps); -- 2.30.2