From d00eaa98345ad793fed4c3c2f6bf3ed1ba0e9cc0 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Tue, 8 Dec 2015 22:17:44 +0000 Subject: [PATCH] Catch empty owner as array, which would also cause problems --- calendar/js/app.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/calendar/js/app.js b/calendar/js/app.js index 001576a504..cf5e15d2d7 100644 --- a/calendar/js/app.js +++ b/calendar/js/app.js @@ -1682,7 +1682,9 @@ app.classes.calendar = AppJS.extend( this.state_update_in_progress = true; // Sanitize owner so it's always an array - if(state.state.owner === null || !state.state.owner) + if(state.state.owner === null || !state.state.owner || + (typeof state.state.owner.length != 'undefined' && state.state.owner.length == 0) + ) { state.state.owner = undefined; }