https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35414
Bug ID: 35414
Summary: Silence warn related to number_of_copies
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: trivial
Priority: P5 - low
Component: Cataloging
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
CC: [email protected]
cataloguing/additem.pl has this code:
my $number_of_copies = min( scalar $input->param('number_of_copies'),
1000 ); # TODO refine hardcoded maximum?
"number_of_copies" comes from the "Add multiple copies of this item" feature.
The field for entering the number of copies defaults to empty, and this results
in this warning, from the code above:
[WARN] Argument "" isn't numeric in subroutine entry at
/usr/share/koha/intranet/cgi-bin/cataloguing/additem.pl line 233.
We could fix this a couple of ways:
- Make the number_of_copies field default to 1
- Fix the code, so 1 is used for number_of_copies, if the input is empty
--
You are receiving this mail because:
You are the assignee for the bug.
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/