]> 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)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Mon, 11 Dec 2023 18:41:24 +0000 (19:41 +0100)
commit8ba9ea8a87e0d6653261d90d743cd75328ad0b99
tree7b5c2d2e6149af3a7fd481f5bac19c71ce954e2d
parent4c6517767a86947361b81e0f718ec3833c5d5a33
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>
cataloguing/additem.pl