Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| cf136772fe |
@@ -136,8 +136,11 @@ func (api *API) collectionGetHandler(m mgocrud.ModelInterface) gin.HandlerFunc {
|
|||||||
}
|
}
|
||||||
clearedSort := []string{}
|
clearedSort := []string{}
|
||||||
for _, s := range sort {
|
for _, s := range sort {
|
||||||
if s != "" {
|
// split by comma and append all parts to clearedSort
|
||||||
clearedSort = append(clearedSort, s)
|
for _, sPart := range strings.Split(s, ",") {
|
||||||
|
if sPart != "" {
|
||||||
|
clearedSort = append(clearedSort, sPart)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user