forked from extern/egroupware
- Change resources preference option back
- Fix default to be resources with conflicts
This commit is contained in:
parent
4ec54ffd36
commit
e10905988a
@ -194,7 +194,7 @@ class calendar_hooks
|
||||
'selected' => lang('Selected users/groups')
|
||||
);
|
||||
$defaultresource_sel = array(
|
||||
'resources_conflict' => lang('resources'),
|
||||
'resources_conflict' => lang('resources with conflict detection'),
|
||||
'resources_without_conflict' => lang('resources except conflicting ones')
|
||||
);
|
||||
$reset_stati_on_shifts = array(
|
||||
|
@ -803,7 +803,7 @@ class resources_bo
|
||||
}
|
||||
}
|
||||
if (isset($res_info_cache)) {
|
||||
$show_conflict= $GLOBALS['egw_info']['user']['preferences']['calendar']['defaultresource_sel'] === 'resources_conflict';
|
||||
$show_conflict= $GLOBALS['egw_info']['user']['preferences']['calendar']['defaultresource_sel'] !== 'resources_without_conflict';
|
||||
// if we have this array indexed on resource id it means non-bookable resource are removed and we are working for calendar
|
||||
// so we'll loop on this one and not $data
|
||||
foreach($res_info_cache as $id => $resource) {
|
||||
|
Loading…
Reference in New Issue
Block a user