mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 12:39:25 +01:00
Calendar - fix birthday preference always sent to client as false
This commit is contained in:
parent
223b55d631
commit
0ab3a209cc
@ -162,7 +162,7 @@ class calendar_hooks
|
||||
'Saturday' => lang('Saturday')
|
||||
);
|
||||
$birthdays_as_events = array(
|
||||
0 => lang('None'),
|
||||
'0' => 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'=> FALSE
|
||||
'default'=> '0'
|
||||
),
|
||||
'limit_all_day_lines' => array(
|
||||
'type' => 'input',
|
||||
|
@ -417,7 +417,7 @@ var et2_calendar_daycol = (function(){ "use strict"; return et2_valueWidget.exte
|
||||
var holidays = et2_calendar_view.get_holidays(this,this.options.date.substring(0,4));
|
||||
var holiday_list = [];
|
||||
var holiday_pref = (egw.preference('birthdays_as_events','calendar')||'').split(',');
|
||||
debugger;
|
||||
|
||||
// Show holidays as events on mobile or by preference
|
||||
var holidays_as_events = egwIsMobile() || egw.preference('birthdays_as_events','calendar') === true ||
|
||||
holiday_pref.indexOf('holiday') >= 0;
|
||||
|
Loading…
Reference in New Issue
Block a user