[Koha-bugs] [Bug 33896] Catalog search from the masthead searchbar produces a warning in the logs

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Jun 22 22:16:16 CEST 2023


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

Katrin Fischer <katrin.fischer at bsz-bw.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #152030|0                           |1
        is obsolete|                            |

--- Comment #3 from Katrin Fischer <katrin.fischer at bsz-bw.de> ---
Created attachment 152588
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=152588&action=edit
Bug 33896: Check whether index is defined before string match

This patch checks that $indexes[$i] is defined before testing whether the
string matches to remove the logged warning when searching

Test plan:
1) In the intranet, search the catalog from the top search bar
2) Check plack-intranet-error.log
3) There should be a warning "[WARN] Use of uninitialized value within @indexes
in string eq"
4) Apply patch
5) restart_all and then re-try the search
6) The warning should no longer appear

Signed-off-by: David Cook <dcook at prosentient.com.au>
Signed-off-by: Katrin Fischer <katrin.fischer.83 at web.de>

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


More information about the Koha-bugs mailing list