]> git.koha-community.org Git - koha.git/commit
Bug 35414: Silence warn related to number_of_copies
authorMagnus Enger <magnus@libriotech.no>
Wed, 29 Nov 2023 13:58:08 +0000 (14:58 +0100)
committerFridolin Somers <fridolin.somers@biblibre.com>
Tue, 12 Dec 2023 07:37:28 +0000 (21:37 -1000)
commitaad41dd27a37ab42a6aa9606d56a031b6f67a180
tree794332bd569a94a401d4d0863bb811fdf7ada048
parentb07a87ae43f578c30e752933e9ad5a5a8871fd73
Bug 35414: Silence warn related to number_of_copies

To test in ktd:
- Tail the logs with "sudo tail -f /var/log/koha/kohadev/plack*.log"
- Find a record in the staff client
- Add an item to the record
- Observe "[WARN] Argument "" isn't numeric in subroutine entry ..."
  in /var/log/koha/kohadev/plack-intranet-error.log
- Apply this patch
- restart_all
- Tail the logs again
- Add another item
- Observe the absence of the earlier warning

Thanks to Jonathan Druart for suggesting this particular solution!

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 8ba9ea8a87e0d6653261d90d743cd75328ad0b99)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
cataloguing/additem.pl