]> git.koha-community.org Git - koha.git/commit
Bug 11269: fix incorrect use of MARC::Field->subfield()
authorTomas Cohen Arazi <tomascohen@gmail.com>
Mon, 18 Nov 2013 22:04:56 +0000 (19:04 -0300)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Wed, 20 Nov 2013 13:13:08 +0000 (10:13 -0300)
commitacfcf68d8ea5344069fdefafa146456041e6b10d
tree28d7b77023d3350dac62f00e399bd07ddfb268a3
parentf4ae9bad32d3b1dd656cee84e28938b6613d3b8b
Bug 11269: fix incorrect use of MARC::Field->subfield()

MARC::Record 2.0.6+ enables the warnings pragma, and as a
consequence, started logging cases where a routine in
C4::Search was calling MARC::Field->subfield() with an undef
subfield label.  This patch removes the log noise.

To test:
- Run prove -v t/db_dependent/Search.t
- There will be warnings about
  "Use of uninitialized value $code_wanted in string" in MARC::Field.
- Apply the patch.
- Those warnings are gone.

Signed-off-by: Liz Rea <liz@catalyst.net.nz>
Tests now pass

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
(cherry picked from commit 2f6f6d2b0c4d4e8a4ed5ab17fbbf66393f8a2c69)
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
C4/Search.pm