Update datatables.go
This commit is contained in:
parent
410042044c
commit
c3df2b7682
@ -149,13 +149,12 @@ func parse(r *http.Request) (Filter, error) {
|
|||||||
|
|
||||||
o := Order{Dir: dir}
|
o := Order{Dir: dir}
|
||||||
for _, c := range F.Columns {
|
for _, c := range F.Columns {
|
||||||
if c.Index == ic {
|
if c.Index == ic && c.Orderable {
|
||||||
o.Column = c
|
o.Column = c
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if o.Column == (Column{}) {
|
if o.Column == (Column{}) {
|
||||||
errores = append(errores, "column with index "+strconv.Itoa(ic)+" not found")
|
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user