[Koha-bugs] [Bug 36277] t/db_dependent/api/v1/transfer_limits.t is failing
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Fri Mar 15 13:10:18 CET 2024
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36277
--- Comment #21 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
Created attachment 163225
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=163225&action=edit
Bug 36277: Avoid useless warnings
As mentioned on bug 36329, this endpoint is only used with one of this
parameters:
* item_type
* collection_code
The other will be NULL both on the DB and the (deserialized) request
body. For the data from the DB, the author added `|| q{}` but missed to
do so on the incoming parameters when generates the hash key.
This generates the following warnings when using from the UI:
[2024/03/15 11:42:51] [WARN] Use of uninitialized value in sprintf at
/kohadevbox/koha/Koha/REST/V1/TransferLimits.pm line 146.
Signed-off-by: Tomas Cohen Arazi <tomascohen at theke.io>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list