diff --git a/pkg/migration/20220815200851.go b/pkg/migration/20220815200851.go index a6a80bef..36561d9f 100644 --- a/pkg/migration/20220815200851.go +++ b/pkg/migration/20220815200851.go @@ -18,9 +18,10 @@ package migration import ( "encoding/json" - "src.techknowlogick.com/xormigrate" "strconv" "strings" + + "src.techknowlogick.com/xormigrate" "xorm.io/xorm" ) diff --git a/pkg/models/task_collection_filter.go b/pkg/models/task_collection_filter.go index 4a254a3c..11718dbc 100644 --- a/pkg/models/task_collection_filter.go +++ b/pkg/models/task_collection_filter.go @@ -216,10 +216,7 @@ func getNativeValueForTaskField(fieldName string, comparator taskFilterComparato if realFieldName == "Assignees" { vals := strings.Split(value, ",") - valueSlice := []string{} - for _, val := range vals { - valueSlice = append(valueSlice, val) - } + valueSlice := append([]string{}, vals...) return valueSlice, nil }