fix(dashboard): fix undefined array key 'status'

Signed-off-by: Anna Larch <anna@nextcloud.com>
This commit is contained in:
Anna Larch
2025-07-18 15:33:16 +02:00
parent f8b0cc2f39
commit e5b14a9429
3 changed files with 19 additions and 2 deletions

View File

@ -107,7 +107,7 @@ class CalendarIntegrationService {
continue;
}
if ($event['STATUS'][0] === 'CANCELLED') {
if (isset($event['STATUS']) && $event['STATUS'][0] === 'CANCELLED') {
continue;
}

View File

@ -13,7 +13,7 @@ Feature: integration/dashboard-talk
|dashboardRoom | 2 | dashboardRoom-attachment | null | null | null | null | 1 | 1 |
|dashboardRoom | 2 | dashboardRoom-attendees | 1 | 1 | null | null | 0 | 1 |
|dashboardRoom | 2 | dashboardRoom-recurring | null | null | null | null | 0 | 1 |
|dashboardRoom | 2 | dashboardRoom-no-status | null | null | null | null | 0 | 1 |
Scenario: User gets mutual events for a one to one conversation
Given user "participant1" exists and has an email address
Given user "participant2" exists and has an email address

View File

@ -0,0 +1,17 @@
BEGIN:VCALENDAR
PRODID:-//IDN nextcloud.com//Calendar app 5.2.0-dev.1//EN
CALSCALE:GREGORIAN
VERSION:2.0
BEGIN:VEVENT
CREATED:20250310T171800Z
DTSTAMP:20250310T171819Z
LAST-MODIFIED:20250310T171819Z
SEQUENCE:2
UID:{{{UID}}}
DTSTART:{{{START}}}
DTEND:{{{END}}}
SUMMARY:{{{NAME}}}-no-status
LOCATION:{{{LOCATION}}}
DESCRIPTION:{{{NAME}}}
END:VEVENT
END:VCALENDAR