diff --git a/apps/dav/lib/CalDAV/Activity/Filter/Todo.php b/apps/dav/lib/CalDAV/Activity/Filter/Todo.php index 42ee074085..312bb6c472 100644 --- a/apps/dav/lib/CalDAV/Activity/Filter/Todo.php +++ b/apps/dav/lib/CalDAV/Activity/Filter/Todo.php @@ -79,7 +79,7 @@ class Todo implements IFilter { * @since 11.0.0 */ public function filterTypes(array $types) { - return array_intersect(['calendar_todo'], $types); + return array_intersect(['calendar_todos'], $types); } /** diff --git a/apps/dav/tests/unit/CalDAV/Activity/Filter/TodoTest.php b/apps/dav/tests/unit/CalDAV/Activity/Filter/TodoTest.php index 54a5a6f5f9..3c6ac2a5c5 100644 --- a/apps/dav/tests/unit/CalDAV/Activity/Filter/TodoTest.php +++ b/apps/dav/tests/unit/CalDAV/Activity/Filter/TodoTest.php @@ -67,9 +67,9 @@ class TodoTest extends TestCase { public function dataFilterTypes() { return [ [[], []], - [['calendar_todo'], ['calendar_todo']], - [['calendar', 'calendar_event', 'calendar_todo'], ['calendar_todo']], - [['calendar', 'calendar_todo', 'files'], ['calendar_todo']], + [['calendar_todos'], ['calendar_todos']], + [['calendar', 'calendar_event', 'calendar_todos'], ['calendar_todos']], + [['calendar', 'calendar_todos', 'files'], ['calendar_todos']], ]; }