From 824bffdb5b9fc7ae3db45c647d33e18396d7182c Mon Sep 17 00:00:00 2001 From: Alex Baker Date: Wed, 5 Jun 2019 12:08:44 -0500 Subject: [PATCH] Remove duplicate tag results --- app/src/main/java/org/tasks/ui/TaskListViewModel.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/org/tasks/ui/TaskListViewModel.java b/app/src/main/java/org/tasks/ui/TaskListViewModel.java index 8c382896e..fe24fd63a 100644 --- a/app/src/main/java/org/tasks/ui/TaskListViewModel.java +++ b/app/src/main/java/org/tasks/ui/TaskListViewModel.java @@ -51,7 +51,7 @@ public class TaskListViewModel extends ViewModel { private static final Field PRIMARY_SORT = field("primary_sort").as("primarySort"); private static final Field SECONDARY_SORT = field("secondary_sort").as("secondarySort"); private static final StringProperty TAGS = - new StringProperty(null, "group_concat(" + TAGS_METADATA_JOIN + ".tag_uid" + ", ',')") + new StringProperty(null, "group_concat(distinct(" + TAGS_METADATA_JOIN + ".tag_uid)" + ")") .as("tags"); @Inject Preferences preferences; @Inject TaskDao taskDao;