mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-14 18:08:21 +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;
|
this.state_update_in_progress = true;
|
||||||
|
|
||||||
// Sanitize owner so it's always an array
|
// 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;
|
state.state.owner = undefined;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user