mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-29 10:09:10 +01:00
Add 'None' option to calendar display options
This commit is contained in:
parent
5200176061
commit
d853cb7b0f
@ -1344,7 +1344,7 @@ class infolog_bo
|
||||
'filter'=> "user$user".($do_events ? 'date' : 'opentoday').$date_wanted,
|
||||
'start' => 0,
|
||||
);
|
||||
if ($GLOBALS['egw_info']['user']['preferences']['infolog']['cal_show'])
|
||||
if ($GLOBALS['egw_info']['user']['preferences']['infolog']['cal_show'] || $GLOBALS['egw_info']['user']['preferences']['infolog']['cal_show'] === '0')
|
||||
{
|
||||
$query['col_filter']['info_type'] = explode(',',$GLOBALS['egw_info']['user']['preferences']['infolog']['cal_show']);
|
||||
}
|
||||
|
@ -451,7 +451,7 @@ class infolog_hooks
|
||||
'type' => 'multiselect',
|
||||
'label' => 'Which types should the calendar show',
|
||||
'name' => 'cal_show',
|
||||
'values' => $info->enums['type'],
|
||||
'values' => array(0 => lang('None')) + $info->enums['type'],
|
||||
'help' => 'Can be used to show further InfoLog types in the calendar or limit it to show eg. only tasks.',
|
||||
'xmlrpc' => True,
|
||||
'admin' => False,
|
||||
|
Loading…
Reference in New Issue
Block a user