]> git.koha-community.org Git - koha.git/commit
Bug 18996: [16.11.x] Resolve an uninitialized warning from ILS/Item.pm
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Tue, 1 Aug 2017 12:10:56 +0000 (14:10 +0200)
committerKatrin Fischer <katrin.fischer.83@web.de>
Fri, 15 Sep 2017 22:49:07 +0000 (00:49 +0200)
commitd62eea1bf38b0939b173bce2f170fa810bd194aa
tree75743f38a63d78b5712d67d271f490bf981113dd
parentf270020500ef4956c73c2b9630d70e32ebae6921
Bug 18996: [16.11.x] Resolve an uninitialized warning from ILS/Item.pm

From the syslog call on line 107/108. The field $item->{title} has not
been initialized. When catching the warns in a test script with Test::Warn,
I got:
    Use of uninitialized value $args[1] in sprintf at /usr/lib/x86_64-linux-gnu/perl/5.20/Sys/Syslog.pm line 423.

This simply resolves the warning. We might have a closer look to this title
field on another report though.

Test plan:
Run Message.t from the next patch without this fix. It will fail since the
additional warning makes warnings_like return false.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Colin Campbell <colin.campbell@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
C4/SIP/ILS/Item.pm