]> git.koha-community.org Git - koha.git/commit
Bug 31239: Fix incorrect AV linked to a mapped biblio column
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 10 Aug 2022 09:12:06 +0000 (11:12 +0200)
committerLucas Gass <lucas@bywatersolutions.com>
Mon, 31 Oct 2022 21:43:45 +0000 (21:43 +0000)
commit2e363d0d0c7d20e9b386473a7e77e2478ba4c015
tree4087ce333fc95c13027a4b479c180b508d3d4871
parent23d0af2eab453deabf76b805a16ef1e97c795f7e
Bug 31239: Fix incorrect AV linked to a mapped biblio column

If an AV is linked to a MARC field mapped with a biblio column, the
search_for_data_inconsistencies.pl script might explode with

The method Koha::Biblioitem->title is not covered by tests!

Trace begun at /kohadevbox/koha/Koha/Object.pm line 875
Koha::Object::AUTOLOAD('Koha::Biblioitem=HASH(0x556b67fa7168)') called at misc/maintenance/search_for_data_inconsistencies.pl line 246

Test plan:
For a given framework, pick a biblio using it
Link 245$a with an authorised value category
Run the script
=> Notice that with this script applied you will see the warning
=> Without this patch you got the error

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 54711942f1b34fc9d94a61f42734525a03db893a)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
misc/maintenance/search_for_data_inconsistencies.pl