mirror of
https://github.com/go-vikunja/vikunja.git
synced 2026-04-24 22:25:15 +00:00
fix(task): add tasks table prefix for sort order (#1003)
fix: qualify task index for mysql order
This commit is contained in:
@@ -128,7 +128,7 @@ func getOrderByDBStatement(opts *taskSearchOptions) (orderby string, err error)
|
||||
prefix = "task_positions."
|
||||
}
|
||||
|
||||
if param.sortBy == taskPropertyID || param.sortBy == taskPropertyCreated || param.sortBy == taskPropertyUpdated {
|
||||
if param.sortBy == taskPropertyID || param.sortBy == taskPropertyCreated || param.sortBy == taskPropertyUpdated || param.sortBy == taskPropertyIndex {
|
||||
prefix = "tasks."
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user