Bugzilla – Attachment 189011 Details for
Bug 29908
Warning when empty ClaimReturnedWarningThreshold in patron_messages.inc
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 29908: Remove warning when empty ClaimReturnedWarningThreshold in patron_messages.inc
Bug-29908-Remove-warning-when-empty-ClaimReturnedW.patch (text/plain), 3.98 KB, created by
Marcel de Rooy
on 2025-11-04 13:18:05 UTC
(
hide
)
Description:
Bug 29908: Remove warning when empty ClaimReturnedWarningThreshold in patron_messages.inc
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2025-11-04 13:18:05 UTC
Size:
3.98 KB
patch
obsolete
>From 5d5d42014dacfa91a86576ca07c8b9e3a1474b4a Mon Sep 17 00:00:00 2001 >From: Fridolin Somers <fridolin.somers@biblibre.com> >Date: Tue, 14 Oct 2025 12:00:11 +0200 >Subject: [PATCH] Bug 29908: Remove warning when empty > ClaimReturnedWarningThreshold in patron_messages.inc >Content-Type: text/plain; charset=utf-8 > >System preference ClaimReturnedWarningThreshold manages the display of a patron message in case of too many claims. >But this preference may be empty. It is created empty in installer/data/mysql/mandatory/sysprefs.sql. > >This generates a warning : >Argument "" isn't numeric in numeric gt (>) at /kohadevbox/koha/koha-tmpl/intranet-tmpl/prog/en/includes/patron_messages.inc line 128. > >Test plan : >1) Set systempreference 'ClaimReturnedWarningThreshold' empty >2) Go to a patron details page >3) Check there is no warning in logs >4) Go to a patron check-out page >5) Check there is no warning in logs >6) Set systempreference 'ClaimReturnedWarningThreshold' with an integer (ie 5) >Repeat from 2) > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > koha-tmpl/intranet-tmpl/prog/en/includes/patron_messages.inc | 2 +- > koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt | 2 +- > koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt | 2 +- > 3 files changed, 3 insertions(+), 3 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/patron_messages.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/patron_messages.inc >index 25e05462e9..93ce0b53be 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/patron_messages.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/patron_messages.inc >@@ -1,7 +1,7 @@ > [% USE raw %] > [% USE Branches %] > [% USE Categories %] >-[% SET ClaimReturnedWarningThreshold = Koha.Preference('ClaimReturnedWarningThreshold') %] >+[% SET ClaimReturnedWarningThreshold = Koha.Preference('ClaimReturnedWarningThreshold') || 0 %] > [% SET return_claims = patron.return_claims %] > [% SET logged_in_branchcode = Branches.GetLoggedInBranchcode() %] > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt >index 8872479a71..672d27da17 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt >@@ -1088,7 +1088,7 @@ > var ClaimReturnedLostValue = "[% Koha.Preference('ClaimReturnedLostValue') | html %]"; > var ClaimReturnedChargeFee = "[% Koha.Preference('ClaimReturnedChargeFee') | html %]"; > var UnseenRenewals = "[% Koha.Preference('UnseenRenewals') | html %]"; >- var ClaimReturnedWarningThreshold = "[% Koha.Preference('ClaimReturnedWarningThreshold') | html %]"; >+ var ClaimReturnedWarningThreshold = "[% Koha.Preference('ClaimReturnedWarningThreshold') || 0 | html %]"; > var interface = "[% interface | html %]"; > var theme = "[% theme | html %]"; > var borrowernumber = "[% patron.borrowernumber | html %]"; >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt >index 43511b389b..6ac0d5fd48 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt >@@ -769,7 +769,7 @@ > var logged_in_user_borrowernumber = "[% logged_in_user.borrowernumber | html %]"; > var ClaimReturnedLostValue = "[% Koha.Preference('ClaimReturnedLostValue') | html %]"; > var ClaimReturnedChargeFee = "[% Koha.Preference('ClaimReturnedChargeFee') | html %]"; >- var ClaimReturnedWarningThreshold = "[% Koha.Preference('ClaimReturnedWarningThreshold') | html %]"; >+ var ClaimReturnedWarningThreshold = "[% Koha.Preference('ClaimReturnedWarningThreshold') || 0 | html %]"; > var UnseenRenewals = "[% Koha.Preference('UnseenRenewals') | html %]"; > var interface = "[% interface | html %]"; > var theme = "[% theme | html %]"; >-- >2.39.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 29908
:
187860
|
187884
| 189011