]> git.koha-community.org Git - koha.git/commit
Bug 18579: Fix call to append_fields, fix tests
authorJulian Maurice <julian.maurice@biblibre.com>
Fri, 12 May 2017 07:25:23 +0000 (09:25 +0200)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 12 May 2017 12:43:18 +0000 (08:43 -0400)
commit61ca4deee3f94bb30183a7f68a6ccc8e349ee0b9
treeaba0b4d3e8a97718581a5a949b2af21bcd5b5d36
parent542ac21b94a8eec05b3f194f5ffbe4e19f511738
Bug 18579: Fix call to append_fields, fix tests

MARC::Record::append_fields takes a list of MARC::Field (not an arrayref)

Use $record->subfield() instead of $record->field()->subfield() to avoid errors
when field doesn't exist

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Koha/Filter/MARC/EmbedItemsAvailability.pm
t/db_dependent/Koha/Filter/EmbedItemsAvailability.t