[Koha-bugs] [Bug 27539] Console warnings "Use of uninitialized value in split" on "Holds to pull" page

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Sun Jan 24 21:09:18 CET 2021


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

--- Comment #1 from Peter Vashchuk <stalkernoid at gmail.com> ---
Created attachment 115731
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=115731&action=edit
Bug 27539: fix console warnings "Use of uninitialized value in split"

When items in the database have NULLs for some fields, those are SELECTed as
undefs and those values arrive as strings to be splitted by "split" command,
and that produces undef warnings. That is expected behaviour to not have data
for those fields sometimes, so we just need to add perl's "defaulting" to empty
strings for split.

To reproduce:
    1) Place a hold on an item that has an available call number, copy numbers
or enumeration empty.
    2) Head to the Holds to Pull page and check the console to see "Use of
uninitialized value in split" errors.
    3) Apply the patch.
    4) Refresh the Holds to Pull page and check the console again to ensure
that new errors about "Use of uninitialized value in split" weren't added.

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


More information about the Koha-bugs mailing list