mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 06:30:59 +01:00
* Resources - add (usable / quantity) for bookable resources in calendar participants results
This commit is contained in:
parent
3604e66fa6
commit
92df7d3376
@ -698,7 +698,7 @@ class resources_bo
|
||||
$criteria = array('name' => $pattern
|
||||
, 'short_description' => $pattern);
|
||||
}
|
||||
$only_keys = 'res_id,name,short_description,bookable,useable';
|
||||
$only_keys = 'res_id,name,short_description,bookable,useable,quantity';
|
||||
|
||||
// If no read access to any category, just stop
|
||||
if(!$this->acl->get_cats(Acl::READ))
|
||||
@ -810,11 +810,15 @@ class resources_bo
|
||||
//maybe this resource is reserved
|
||||
if ( ($resource['useable'] < 1) )
|
||||
{
|
||||
if($show_conflict) {
|
||||
if($show_conflict)
|
||||
{
|
||||
$list[$id] = ' ('.lang('conflict').') '.$resource['name']. ($resource['short_description'] ? ', ['.$resource['short_description'].']':'');
|
||||
}
|
||||
} else {
|
||||
$list[$id] = $resource['name']. ($resource['short_description'] ? ', ['.$resource['short_description'].']':'');
|
||||
}
|
||||
else
|
||||
{
|
||||
$list[$id] = $resource['name']. ($resource['short_description'] ? ', ['.$resource['short_description'].']':'') .
|
||||
($resource['useable'] > 1 ? "( {$resource['useable']} / {$resource['quantity']} )" : '');
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user