mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 04:29:28 +01:00
* Calendar - Remove option to skip resource detection, we always do it now.
This commit is contained in:
parent
90a40b06ca
commit
a999e6e94f
@ -194,9 +194,8 @@ class calendar_hooks
|
||||
'selected' => lang('Selected users/groups')
|
||||
);
|
||||
$defaultresource_sel = array(
|
||||
'resources_conflict' => lang('resources with conflict detection'),
|
||||
'resources_without_conflict' => lang('resources except conflicting ones'),
|
||||
'resources' => lang('resources')
|
||||
'resources_conflict' => lang('resources'),
|
||||
'resources_without_conflict' => lang('resources except conflicting ones')
|
||||
);
|
||||
$reset_stati_on_shifts = array(
|
||||
'no' => lang('Never'),
|
||||
|
@ -725,9 +725,9 @@ class resources_bo
|
||||
}
|
||||
$list = array();
|
||||
$data = $this->so->search($criteria,$only_keys,$order_by='name',$extra_cols='',$wildcard='%',$empty,$op='OR',$limit,$filter);
|
||||
// maybe we need to check disponibility of the searched resources in the calendar if $pattern ['exec'] contains some extra args
|
||||
// we need to check availability of the searched resources in the calendar if $pattern ['exec'] contains some extra args
|
||||
$show_conflict=False;
|
||||
if ($data && $options['exec'] && $GLOBALS['egw_info']['preferences']['calendar']['defaultresource_sel'] !== 'resources')
|
||||
if ($data && $options['exec'])
|
||||
{
|
||||
// we'll use a cache for resources info taken from database
|
||||
static $res_info_cache = array();
|
||||
|
Loading…
Reference in New Issue
Block a user