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:
parent
bd3eab8c34
commit
feb6b708e3
|
|
@ -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."
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue