mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-14 20:14:11 +01:00
Add conflict check when listing resources in a category for calendar owner / participan
This commit is contained in:
parent
2a3bde1450
commit
1c637d8397
@ -546,8 +546,17 @@ class resources_bo
|
||||
if($cat && stripos($cat, $search) !== FALSE)
|
||||
{
|
||||
// Get resources for that category
|
||||
$resources = $bo->get_resources_by_category($cat_id);
|
||||
|
||||
if(!$options['exec'])
|
||||
{
|
||||
$resources = $bo->get_resources_by_category($cat_id);
|
||||
}
|
||||
else
|
||||
{
|
||||
$cat_options = $options;
|
||||
$cat_options['cat_id'] = $cat_id;
|
||||
$resources = $bo->link_query('',$cat_options);
|
||||
}
|
||||
|
||||
// Edit dialog sends exec as an option, don't add categories
|
||||
if(count($resources) && !$options['exec'])
|
||||
{
|
||||
@ -704,6 +713,10 @@ class resources_bo
|
||||
if($options['start'] || $options['num_rows']) {
|
||||
$limit = array($options['start'], $options['num_rows']);
|
||||
}
|
||||
if($options['cat_id'] && in_array($options['cat_id'], $filter['cat_id']))
|
||||
{
|
||||
$filter['cat_id'] = $options['cat_id'];
|
||||
}
|
||||
if($options['accessory_of'])
|
||||
{
|
||||
$filter['accessory_of'] = $options['accessory_of'];
|
||||
|
Loading…
Reference in New Issue
Block a user