]> git.koha-community.org Git - koha.git/commit
Bug 21036: Remove odd number of elements warnings from AuthoritiesMarc.pm
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Thu, 5 Jul 2018 10:10:26 +0000 (12:10 +0200)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Wed, 8 May 2019 15:48:46 +0000 (16:48 +0100)
commitb3af8f93637a7d54dac3426f54057f8034b24eee
tree922a981dc7aaf97a8ea8f0838dcc745931e1c619
parent6413f40738185f5319c66b763cb5bedc6fba8745
Bug 21036: Remove odd number of elements warnings from AuthoritiesMarc.pm

Like this one (16.11 line number):
Odd number of elements in anonymous hash at C4/AuthoritiesMarc.pm line 1070.

We need to add a scalar to some MARC::Field::subfield calls. In list context
an empty list returned affects the hash built around it.

Test plan:
Could reproduce this warning easily from OPAC authority search.
opac-authorities-home.pl calling BuildSummary.

Signed-off-by: Bouzid Fergani <bouzid.fergani@inlibro.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit 88b37330abaee6372ec999c1a81fd216d66a1379)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
C4/AuthoritiesMarc.pm