From: hickert Date: Mon, 12 Oct 2009 07:54:05 +0000 (+0000) Subject: Updated addressbook plugin X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=22323b830c5a337d92bc0fd86d2217baf8b3359b;p=gosa.git 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 --- 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);