fix(tasks): prefix created and updated columns when sorting by them

Resolves https://github.com/go-vikunja/vikunja/issues/350
This commit is contained in:
kolaente 2024-11-18 12:07:29 +01:00
parent bd3eab8c34
commit feb6b708e3
No known key found for this signature in database
GPG Key ID: F40E70337AB24C9B
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ func getOrderByDBStatement(opts *taskSearchOptions) (orderby string, err error)
prefix = "task_positions."
}
if param.sortBy == taskPropertyID {
if param.sortBy == taskPropertyID || param.sortBy == taskPropertyCreated || param.sortBy == taskPropertyUpdated {
prefix = "tasks."
}