Skip to content

Commit

Permalink
filterview primarykey
Browse files Browse the repository at this point in the history
  • Loading branch information
iesreza committed Apr 11, 2022
1 parent e8a3415 commit 4283633
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 @@ -219,7 +219,7 @@ func (fv *FilterView) Prepare(r *evo.Request) {
fv.Columns[k].Processor = defaultProcessor
}

if column.Name != "" {
if column.Name != "" && column.Name != "-" {
_select = append(_select, column.Model.(string)+"."+quote(column.Name)+" AS "+quote(column.Alias))
}

Expand Down

0 comments on commit 4283633

Please sign in to comment.