Merge pull request #3009 from nextcloud/fix-calendar-todo-event-type

Make sure the used event type and the setting/filter are the same
This commit is contained in:
Morris Jobke 2017-01-10 14:28:30 +01:00 committed by GitHub
commit b727edf17e
3 changed files with 5 additions and 5 deletions

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

View File

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

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