[Koha-bugs] [Bug 23970] itemsearch: when combining two fields with the boolean operator OR, the entry of the second field is not taken into account

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Nov 25 13:38:54 CET 2019


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23970

--- Comment #1 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
Created attachment 95787
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=95787&action=edit
Bug 23970: Search by "publication date" only works if used in first field

The changes made in the following commit:
  commit 0d2e83bca5b91376e9262b6cb0b993f09b919018
  Bug 14636: Item search - fix search and sort by publication date for MARC21
was put at the wrong place. It was inside a "if $i == 1" test that
impacts the first field only.

Test plan:
0/ Use a MARC21 installation
1/ Search items by publication date, use twice the field using different
values.
For instance:
  publication date: 2005 OR
  publication date: 2006
=> Without this patch you only get results for 2005
=> With this patch applied you get results for both years.

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.


More information about the Koha-bugs mailing list