Browse Source

Make sure the used event type and the setting/filter are the same

Signed-off-by: Joas Schilling <coding@schilljs.com>
tags/v12.0.0beta1
Joas Schilling 7 years ago
parent
commit
a70a081fff
No account linked to committer's email address

+ 1
- 1
apps/dav/lib/CalDAV/Activity/Filter/Todo.php View File

@@ -79,7 +79,7 @@ class Todo implements IFilter {
* @since 11.0.0
*/
public function filterTypes(array $types) {
return array_intersect(['calendar_todos'], $types);
return array_intersect(['calendar_todo'], $types);
}

/**

+ 1
- 1
apps/dav/lib/CalDAV/Activity/Setting/Todo.php View File

@@ -42,7 +42,7 @@ class Todo implements ISetting {
* @since 11.0.0
*/
public function getIdentifier() {
return 'calendar_todos';
return 'calendar_todo';
}

/**

+ 3
- 3
apps/dav/tests/unit/CalDAV/Activity/Filter/TodoTest.php View File

@@ -67,9 +67,9 @@ class TodoTest extends TestCase {
public function dataFilterTypes() {
return [
[[], []],
[['calendar_todos'], ['calendar_todos']],
[['calendar', 'calendar_event', 'calendar_todos'], ['calendar_todos']],
[['calendar', 'calendar_todos', 'files'], ['calendar_todos']],
[['calendar_todo'], ['calendar_todo']],
[['calendar', 'calendar_event', 'calendar_todo'], ['calendar_todo']],
[['calendar', 'calendar_todo', 'files'], ['calendar_todo']],
];
}


Loading…
Cancel
Save