mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 16:44:07 +01:00
Calendar: Fix some client side filter bugs
- Resources could cause error for some owner checks
This commit is contained in:
parent
4d6a2cf1b1
commit
df5f5a0ff4
@ -755,7 +755,7 @@ var et2_calendar_event = /** @class */ (function (_super) {
|
||||
if (matching_participant.length > 0) {
|
||||
return this._status_check(event, filter, matching_participant);
|
||||
}
|
||||
else if (filter == 'owner' && resource && resource.resources.indexOf(event.owner)) {
|
||||
else if (filter == 'owner' && resource && resource.resources && resource.resources.indexOf(event.owner)) {
|
||||
// owner param was a group but event is owned by someone in that group
|
||||
return true;
|
||||
}
|
||||
|
@ -974,7 +974,7 @@ export class et2_calendar_event extends et2_valueWidget implements et2_IDetached
|
||||
{
|
||||
return this._status_check(event, filter, matching_participant);
|
||||
}
|
||||
else if (filter == 'owner' && resource && resource.resources.indexOf(event.owner))
|
||||
else if (filter == 'owner' && resource && resource.resources && resource.resources.indexOf(event.owner))
|
||||
{
|
||||
// owner param was a group but event is owned by someone in that group
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user