mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
Make sure the used event type and the setting/filter are the same
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
97a63ad689
commit
a70a081fff
3 changed files with 5 additions and 5 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ class Todo implements ISetting {
|
|||
* @since 11.0.0
|
||||
*/
|
||||
public function getIdentifier() {
|
||||
return 'calendar_todos';
|
||||
return 'calendar_todo';
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -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…
Reference in a new issue