From e3f63c2564cb080a40635814296b80b8738d80a9 Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Fri, 5 Feb 2016 15:00:34 +0000 Subject: [PATCH] return expected granularity when nothing or 0 is set for use_time_grid --- calendar/js/app.js | 1 + 1 file changed, 1 insertion(+) diff --git a/calendar/js/app.js b/calendar/js/app.js index 555ed6f8b6..8476053d2d 100644 --- a/calendar/js/app.js +++ b/calendar/js/app.js @@ -3426,6 +3426,7 @@ app.classes.calendar = AppJS.extend( */ granularity: function(state) { var list = egw.preference('use_time_grid','calendar'); + if(list === 0) return parseInt(egw.preference('interval','calendar')) || 30; if(typeof list == 'string') list = list.split(','); if(!list.indexOf && jQuery.isPlainObject(list)) {