Bug 30626: DT REST API wrapper - Fix general search
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 27 Apr 2022 10:33:03 +0000 (12:33 +0200)
committerFridolin Somers <fridolin.somers@biblibre.com>
Thu, 28 Apr 2022 20:49:20 +0000 (10:49 -1000)
commitcf630a5169d2e29c3731436dc63d7d32d342e656
tree92ba9ad7d40c0e8c969d85538f0fa80ed56ace90
parentf2d2ab18106ec9db29a66d4ce4781dae47d6792b
Bug 30626: DT REST API wrapper - Fix general search

The general search query is not built correctly.

Say you have a table with column filters, like the main patron search:
General filter: henry
Specific filter on the 'Name' column: h

The generated query will be (= are actually LIKE):
{ Column1="henry" AND Column3="henry", ...} AND { Column2="h" }

The first term does not contain the Column2 attribute.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
koha-tmpl/intranet-tmpl/prog/js/datatables.js