Bug 41938 - Argument "" isn't numeric in numeric gt (>) ... warnings in circulation.tt
Summary: Argument "" isn't numeric in numeric gt (>) ... warnings in circulation.tt
Status: Signed Off
Alias: None
Product: Koha
Classification: Unclassified
Component: Circulation (show other bugs)
Version: Main
Hardware: All All
: P5 - low trivial
Assignee: Roman Dolny
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-02-25 18:44 UTC by Roman Dolny
Modified: 2026-02-27 21:15 UTC (History)
3 users (show)

See Also:
GIT URL:
Initiative type: ---
Sponsorship status: Sponsored
Comma delimited list of Sponsors: Ignatianum University in Cracow
Crowdfunding goal: 0
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments
Bug 41938: Argument "" isn't numeric in numeric gt (>) ... warnings in circulation.tt (2.00 KB, patch)
2026-02-25 19:03 UTC, Roman Dolny
Details | Diff | Splinter Review
Bug 41938: Argument "" isn't numeric in numeric gt (>) ... warnings in circulation.tt (2.05 KB, patch)
2026-02-27 18:07 UTC, David Nind
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Roman Dolny 2026-02-25 18:44:43 UTC
The warnings:

[WARN] Argument "" isn't numeric in numeric gt (>) at 
/kohadevbox/koha/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt
 line 1072.
[WARN] Argument "" isn't numeric in numeric gt (>) at 
/kohadevbox/koha/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt
 line 1188.

appears in the plack-intranet-error.log.

To reproduce:
1. Use a fresh KTD, observe plack-intranet-error.log.
2. Find any patron and go to "Check out" tab.
==> Warnings should appear in plack-intranet-error.log
Comment 1 Roman Dolny 2026-02-25 19:03:45 UTC
Created attachment 193938 [details] [review]
Bug 41938: Argument "" isn't numeric in numeric gt (>) ... warnings in circulation.tt

The warnings:

[WARN] Argument "" isn't numeric in numeric gt (>) at
/kohadevbox/koha/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt
 line 1072.
[WARN] Argument "" isn't numeric in numeric gt (>) at
/kohadevbox/koha/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt
 line 1188.

appears in the plack-intranet-error.log.

Test plan:
==========
1. Use a fresh KTD, observe plack-intranet-error.log.
2. Find any patron and go to "Check out" tab.
==> Warnings should appear in plack-intranet-error.log
3. Apply the patch; restart_all.
4. Repeat 2. No warnings in plack-intranet-error.log

Sponsored-by: Ignatianum University in Cracow
Comment 2 David Nind 2026-02-27 18:07:16 UTC
Created attachment 194150 [details] [review]
Bug 41938: Argument "" isn't numeric in numeric gt (>) ... warnings in circulation.tt

The warnings:

[WARN] Argument "" isn't numeric in numeric gt (>) at
/kohadevbox/koha/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt
 line 1072.
[WARN] Argument "" isn't numeric in numeric gt (>) at
/kohadevbox/koha/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt
 line 1188.

appears in the plack-intranet-error.log.

Test plan:
==========
1. Use a fresh KTD, observe plack-intranet-error.log.
2. Find any patron and go to "Check out" tab.
==> Warnings should appear in plack-intranet-error.log
3. Apply the patch; restart_all.
4. Repeat 2. No warnings in plack-intranet-error.log

Sponsored-by: Ignatianum University in Cracow
Signed-off-by: David Nind <david@davidnind.com>
Comment 3 David Nind 2026-02-27 18:24:00 UTC
Testing notes (using KTD):

1. For me, the warnings only appeared once after starting KTD.

2. Steps to reproduce:
   2.1 Start up KTD: ktd up
   2.2 Log in to the staff interface
   2.3 Go to Patrons > search for a patron (such as Mary)
   2.4 Result: you are on the details tab for patron
   2.5 Switch to the check out section for the patron
   2.6 Result: the warning appears in the log

3. Doing the same in step 2 for another patron did not add additional warnings to the log.

4. A restart_all (along with clearing the browser cache) or a reset_all also did not add additional warnings to the log.
Comment 4 Roman Dolny 2026-02-27 21:15:21 UTC
(In reply to David Nind from comment #3)
> Testing notes (using KTD):
> 
> 1. For me, the warnings only appeared once after starting KTD.
...

David, thank you for testing and notes.
Indeed, the warnings only appear the first time.
I don't know what causes this behavior, see bug 41722.