updated qrz with non case sensitive search
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Paul 2020-07-19 19:37:38 +02:00
parent f80a43faf1
commit 44ff5e3734

View File

@ -210,7 +210,7 @@ func SetSearchLikeStatement(config config.Config, qrzdt QrzDatatableInput) (sear
var searchstmtslice []string
if len(qrzdt.Columns) > 0 {
for id, i := range qrzdt.Columns {
searchstmtslice = append(searchstmtslice, fmt.Sprintf("%s LIKE '%%%s%%'", i.Name, qrzdt.Search.Value))
searchstmtslice = append(searchstmtslice, fmt.Sprintf("%s ILIKE '%%%s%%'", i.Name, qrzdt.Search.Value))
if id < len(qrzdt.Columns)-1 {
searchstmtslice = append(searchstmtslice, "OR")
}