From e88080d52048aed4b34f29b2e9bc7d04e83f66a3 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 25 Jun 2007 16:43:32 +0000 Subject: [PATCH] "fixed bug: resources search to create links returns only maxmatch entries" --- resources/inc/class.bo_resources.inc.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/resources/inc/class.bo_resources.inc.php b/resources/inc/class.bo_resources.inc.php index 8bc97ae01b..abaaab8593 100755 --- a/resources/inc/class.bo_resources.inc.php +++ b/resources/inc/class.bo_resources.inc.php @@ -23,6 +23,12 @@ class bo_resources var $thumbs_dir = '/resources/pictures/thumbs/'; var $resource_icons = '/resources/templates/default/images/resource_icons/'; var $debug = 0; + /** + * Instance of resources so object + * + * @var so_resources + */ + var $so; function bo_resources() { @@ -332,7 +338,7 @@ class bo_resources 'cat_id' => array_flip((array)$this->acl->get_cats(EGW_ACL_READ)), //'accessory_of' => '-1' ); - $data = $this->so->search($criteria,$only_keys,$order_by='',$extra_cols='',$wildcard='%',$empty,$op='OR','',$filter); + $data = $this->so->search($criteria,$only_keys,$order_by='',$extra_cols='',$wildcard='%',$empty,$op='OR',false,$filter); foreach($data as $num => $resource) { $list[$resource['res_id']] = $resource['name']. ($resource['short_description'] ? ', ['.$resource['short_description'].']':'');