From 9061fe39e7a389a5aa22004fa787ddb932f63037 Mon Sep 17 00:00:00 2001 From: Janusz Kaczmarek Date: Tue, 29 Jul 2025 09:45:58 +0000 Subject: [PATCH] Bug 40540: OPAC generates warnings in logs when no results are found When no results are found, a warning: [WARN] Argument "" isn't numeric in numeric gt (>) at /kohadevbox/koha/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt line 76. is generated in [plack-]opac-error.log Test plan: ========== 1. In OPAC, perform a search for a random string of characters to get no results. 2. Check plack-opac-error.log. You should see a warning as above. 3. Apply the patch ; restart_all. 4. Repeat the search. Check the log -- there should be no new warning. Sponsored-by: Ignatianum University in Cracow --- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt index e26edbe281..131972bc3e 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt @@ -73,7 +73,7 @@ [% WRAPPER breadcrumb_item bc_active= 1 %] [% IF ( ms_value ) %] Results of search for '[% ms_value | html %]'[% IF ( pages > 1) %], page [% current_page_number | html %] of [% pages | html %][% END %]Results of search for '[% ms_value | html %]'[% IF ( pages && pages > 1) %], page [% current_page_number | html %] of [% pages | html %][% END %] [% ELSE %] Search results -- 2.39.5