From 138065be64aa3de73eb8da4dc45eb3ee6bcfcfb3 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Thu, 4 Feb 2016 16:25:20 +0000 Subject: [PATCH] Handle cat_id == '0' as false, fixes missing None line --- calendar/js/et2_widget_planner.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/calendar/js/et2_widget_planner.js b/calendar/js/et2_widget_planner.js index 0d1a21a4b0..08d03083d8 100644 --- a/calendar/js/et2_widget_planner.js +++ b/calendar/js/et2_widget_planner.js @@ -583,7 +583,10 @@ var et2_calendar_planner = et2_calendar_view.extend([et2_IDetachedDOM, et2_IResi },{application: 'calendar'}); var labels = []; - if(!app.calendar.state.cat_id || app.calendar.state.cat_id.toString() === '') + if(!app.calendar.state.cat_id || + app.calendar.state.cat_id.toString() === '' || + app.calendar.state.cat_id.toString() == '0' + ) { app.calendar.state.cat_id = ''; labels.push({id:'',value:'',label: egw.lang('none'), main: '', data: {}});