mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 09:09:04 +01:00
Catch empty owner as array, which would also cause problems
This commit is contained in:
parent
cbf2497d58
commit
d00eaa9834
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user