mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-27 07:42:49 +01:00
first resource was not found when searching bookable resources
This commit is contained in:
parent
1bee3ca929
commit
d2a886fef2
@ -334,12 +334,9 @@ class bo_resources
|
|||||||
);
|
);
|
||||||
$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','',$filter);
|
||||||
foreach($data as $num => $resource)
|
foreach($data as $num => $resource)
|
||||||
{
|
|
||||||
if($num != 0)
|
|
||||||
{
|
{
|
||||||
$list[$resource['res_id']] = $resource['name']. ($resource['short_description'] ? ', ['.$resource['short_description'].']':'');
|
$list[$resource['res_id']] = $resource['name']. ($resource['short_description'] ? ', ['.$resource['short_description'].']':'');
|
||||||
}
|
}
|
||||||
}
|
|
||||||
return $list;
|
return $list;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user