From c3df2b7682f9993b46bbc8d7dc8ec415e713da02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ortega?= Date: Fri, 23 Feb 2018 14:50:27 -0500 Subject: [PATCH] Update datatables.go --- datatables.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/datatables.go b/datatables.go index e6b21a6..c467c8f 100644 --- a/datatables.go +++ b/datatables.go @@ -149,13 +149,12 @@ func parse(r *http.Request) (Filter, error) { o := Order{Dir: dir} for _, c := range F.Columns { - if c.Index == ic { + if c.Index == ic && c.Orderable { o.Column = c break } } if o.Column == (Column{}) { - errores = append(errores, "column with index "+strconv.Itoa(ic)+" not found") continue }