]> 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)
committerLucas Gass <lucas@bywatersolutions.com>
Sun, 26 May 2019 12:58:33 +0000 (12:58 +0000)
commita0066c945290124b17f0b44febd3316169ccdf3c
tree53c741bc56a3bd37111b4343293c6c6ffc9108fc
parent7d29b1c7a830323f28a2f15a07b95130523ba45e
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>
(cherry picked from commit b3af8f93637a7d54dac3426f54057f8034b24eee)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
C4/AuthoritiesMarc.pm