mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 00:29:38 +01:00
Fix resource booking conflict indication
This commit is contained in:
parent
606f8ec667
commit
16b131c883
@ -534,11 +534,12 @@ class resources_bo
|
||||
*/
|
||||
public static function calendar_search($search, $options)
|
||||
{
|
||||
// Resources
|
||||
$list = Link::query('resources', $search, $options);
|
||||
$bo = new resources_bo();
|
||||
|
||||
// Resources - call direct to avoid cache
|
||||
$list = $bo->link_query($search, $options);
|
||||
|
||||
// Categories
|
||||
$bo = new resources_bo();
|
||||
$cats = $bo->acl->get_cats(Acl::READ);
|
||||
foreach($cats as $cat_id => $cat)
|
||||
{
|
||||
@ -562,7 +563,7 @@ class resources_bo
|
||||
else if ($resources && $options['exec'])
|
||||
{
|
||||
array_map(
|
||||
function($id,$name) use (&$list) { $list[''.$id] = $name;},
|
||||
function($id,$name) use (&$list) { if(!$list[''.$id]) $list[''.$id] = $name;},
|
||||
array_keys($resources), $resources
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user