From 86c86fab9f7b868c2f16c3d4757079d5e823456e Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Mon, 2 May 2016 15:17:20 +0000 Subject: [PATCH] Avoid undefined labels breaking the sort --- calendar/js/et2_widget_planner.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/calendar/js/et2_widget_planner.js b/calendar/js/et2_widget_planner.js index bb4105f28d..4baf4d2138 100644 --- a/calendar/js/et2_widget_planner.js +++ b/calendar/js/et2_widget_planner.js @@ -341,7 +341,7 @@ var et2_calendar_planner = (function(){ "use strict"; return et2_calendar_view.e { if(already_added.indexOf(''+id) < 0) { - this.push({id: id, label: result[id], data: {participants:id,owner:id}}); + this.push({id: id, label: result[id]||'', data: {participants:id,owner:id}}); already_added.push(''+id); } } @@ -349,7 +349,7 @@ var et2_calendar_planner = (function(){ "use strict"; return et2_calendar_view.e } else // users { - var label = this._get_owner_name(user); + var label = this._get_owner_name(user)||''; if(already_added.indexOf(user) < 0) { labels.push({id: user, label: label, data: {participants:user,owner:''}});