From 7e65ec48bd93483a8189ff9e23c82d987fb86e3d Mon Sep 17 00:00:00 2001 From: nathangray Date: Thu, 6 Aug 2020 13:20:25 -0600 Subject: [PATCH] Calendar: Fix resource rows were missing in planner by user --- calendar/js/et2_widget_planner.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calendar/js/et2_widget_planner.js b/calendar/js/et2_widget_planner.js index f80fc5fc12..3140ea6b18 100644 --- a/calendar/js/et2_widget_planner.js +++ b/calendar/js/et2_widget_planner.js @@ -422,7 +422,7 @@ var et2_calendar_planner = (function(){ "use strict"; return et2_calendar_view.e this.invalidate(); },this); } - else if(already_added.indexOf(''+user) < 0 && parseInt(user) >= 0) + else if(already_added.indexOf(''+user) < 0 && (isNaN(user) || parseInt(user) >= 0)) { labels.push({ id: user,