Bug 29908 - Warning when empty ClaimReturnedWarningThreshold in patron_messages.inc
Summary: Warning when empty ClaimReturnedWarningThreshold in patron_messages.inc
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Patrons (show other bugs)
Version: Main
Hardware: All All
: P5 - low minor (vote)
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks: 25790
  Show dependency treegraph
 
Reported: 2022-01-19 20:59 UTC by Fridolin Somers
Modified: 2022-05-17 11:57 UTC (History)
2 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Fridolin Somers 2022-01-19 20:59:07 UTC
System preference ClaimReturnedWarningThreshold manages the display of a patron message in case of too many claims.
But this preference may be empty.
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.

Default value should be considered has 0 or infinite ?

Before Bug 27873 code was in templates, bug still applies.