]> git.koha-community.org Git - koha.git/commit
Bug 28365: (Bug 19873 follow-up) Make it possible to search on value 0
authorFridolin Somers <fridolin.somers@biblibre.com>
Mon, 17 May 2021 14:20:41 +0000 (16:20 +0200)
committerFridolin Somers <fridolin.somers@biblibre.com>
Thu, 11 Nov 2021 01:46:17 +0000 (15:46 -1000)
commitbd63b703b31d6383472ed309d4daa20469c5d414
tree40a81d1d631ee777b0140b02e0948a88ea71c203
parentd1daaf7f872743af1fe7fbcf683b1382f11c3abd
Bug 28365: (Bug 19873 follow-up) Make it possible to search on value 0

Bug 19873 fixed search with value 0.
It works in first page but not in other pages.

This patch fixes query_cgi var.

Test plan:
  - create a st-numeric index in zebra conf related to
    a numeric field
    i.e:
    yourindex 1=yourindex 4=109
  - fill a field with 0 in several biblio records,
  - reindex your biblios,
  - search yourindex=0 and go to second page of results,
  - should not work,
  - apply this patch,
  - test again,
  - should work

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit 14475990626dd16f82b08415b07cf8669ce51a54)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
C4/Search.pm