Skip to content

Commit

Permalink
Fix issue with 'order' in field list is ambiguous in the filterview
Browse files Browse the repository at this point in the history
  • Loading branch information
gregory committed May 3, 2022
1 parent a338547 commit 93af937
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion viewfn/filterview.go
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ func (fv *FilterView) Prepare(r *evo.Request) bool {
db = db.Unscoped()
}
if fv.Sort.SortColumn != "" {
_select = append(_select, quote(fv.Sort.SortColumn)+" AS `_order`")
_select = append(_select, quote(tables[0])+"."+quote(fv.Sort.SortColumn)+" AS `_order`")
}
_select = append(_select, quote(tables[0])+"."+quote(schema.Schema.PrimaryFieldDBNames[0])+" AS `pk`")
var dataQuery = ""
Expand Down

0 comments on commit 93af937

Please sign in to comment.