forked from extern/egroupware
use "none" instead of "0" to allow default or forced pref
This commit is contained in:
parent
e72c7c76b6
commit
4323a40aad
@ -162,7 +162,7 @@ class calendar_hooks
|
||||
'Saturday' => lang('Saturday')
|
||||
);
|
||||
$birthdays_as_events = array(
|
||||
'0' => lang('None'),
|
||||
'none' => lang('None'),
|
||||
'birthday' => lang('Birthdays'),
|
||||
'holiday' => lang('Holidays')
|
||||
);
|
||||
@ -325,7 +325,7 @@ class calendar_hooks
|
||||
'label' => 'Show birthdays as events',
|
||||
'name' => 'birthdays_as_events',
|
||||
'help' => 'Show birthdays as all day non-blocking events as well as via mouseover of the date.',
|
||||
'default'=> '0'
|
||||
'default'=> 'none'
|
||||
),
|
||||
'limit_all_day_lines' => array(
|
||||
'type' => 'input',
|
||||
|
@ -2759,7 +2759,7 @@ function calendar_upgrade17_1()
|
||||
{
|
||||
// Update birthdays as events preference from boolean
|
||||
$change = function($attr, $old_value, $owner) {
|
||||
return $old_value ? 'birthday' : '0';
|
||||
return $old_value ? 'birthday' : 'none';
|
||||
};
|
||||
Api\Preferences::change_preference('calendar', 'birthdays_as_events', $change);
|
||||
return $GLOBALS['setup_info']['calendar']['currentver'] = '17.1.001';
|
||||
|
Loading…
Reference in New Issue
Block a user