From 795b1404b8cfd77c048cbae8dbf2460002838e22 Mon Sep 17 00:00:00 2001 From: Roman Dolny Date: Mon, 26 Jan 2026 22:12:10 +0000 Subject: [PATCH] Bug 41715: Argument "YYYY-MM-DD" isn't numeric in numeric lt (<)... warnings in issues_stats.pl The warnings: [WARN] Argument "YYYY-MM-DD" isn't numeric in numeric lt (<) at /kohadevbox/koha/reports/issues_stats.pl line 224. appears in the plack-intranet-error.log. It happens because a numerical comparison was used to compare the dates instead of a string comparison. To test: ======== 1. Observe plack-intranet-error.log. 2. In staff interface go to Reports > Statistics wizards > Circulation. 3. Select date "From" and date "To" then submit. 4. Two warnings appear in plack-intranet-error.log. 5. Apply the patch; restart_all. 6. Repeat 2-3. No warnings appear in log. Sponsored-by: Ignatianum University in Cracow --- reports/issues_stats.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reports/issues_stats.pl b/reports/issues_stats.pl index 9439eb8aed..c0b550f613 100755 --- a/reports/issues_stats.pl +++ b/reports/issues_stats.pl @@ -221,7 +221,7 @@ sub calculate { my %cell; ( @$filters[$i] ) or next; if ( ( $i == 1 ) and ( @$filters[ $i - 1 ] ) ) { - $cell{err} = 1 if ( @$filters[$i] < @$filters[ $i - 1 ] ); + $cell{err} = 1 if ( @$filters[$i] lt @$filters[ $i - 1 ] ); } # format the dates filters, otherwise just fill as is -- 2.39.5