* Calendar - Remove option to skip resource detection, we always do it now.

This commit is contained in:
nathangray 2018-11-23 10:01:58 -07:00
parent 90a40b06ca
commit a999e6e94f
2 changed files with 4 additions and 5 deletions

View File

@ -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'),

View File

@ -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();