Merge pull request #2746 from nextcloud/backport-2625

[stable11] Fix todo list activity filter
This commit is contained in:
Roeland Jago Douma 2016-12-19 11:21:07 +01:00 committed by GitHub
commit 391f3ea5d9
2 changed files with 4 additions and 4 deletions

View File

@ -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);
}
/**

View File

@ -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']],
];
}