mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-26 01:43:47 +01:00
Calendar - avoid errors from holidays if no country set
This commit is contained in:
parent
3314ca2ea0
commit
5183aa2a19
@ -633,7 +633,9 @@ jQuery.extend(et2_calendar_view,
|
||||
{
|
||||
// Loaded in an iframe or something
|
||||
var view = egw.window.et2_calendar_view ? egw.window.et2_calendar_view : this;
|
||||
if(!view) return {};
|
||||
|
||||
// No country selected causes error, so skip if it's missing
|
||||
if(!view || !egw.preference('country','common')) return {};
|
||||
|
||||
var cache = view.holiday_cache[year];
|
||||
if (typeof cache == 'undefined')
|
||||
|
Loading…
Reference in New Issue
Block a user