https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29908

--- Comment #2 from Fridolin Somers <[email protected]> ---
Created attachment 187860
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=187860&action=edit
Bug 29908: Remove warning when empty ClaimReturnedWarningThreshold in
patron_messages.inc

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)

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to