[Koha-bugs] [Bug 35414] Silence warn related to number_of_copies

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Nov 29 13:58:44 CET 2023


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

Jonathan Druart <jonathan.druart+koha at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jonathan.druart+koha at gmail.
                   |                            |com

--- Comment #1 from Jonathan Druart <jonathan.druart+koha at gmail.com> ---
I would do this:

-    my $number_of_copies           = min( scalar
$input->param('number_of_copies'), 1000 ); # TODO refine hardcoded maximum?
+    my $number_of_copies           = min( $input->param('number_of_copies') ||
0, 1000 ); # TODO refine hardcoded maximum?

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.


More information about the Koha-bugs mailing list