[Koha-bugs] [Bug 24366] Merging biblioitems should happen in Koha::Biblio->to_api

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Jan 13 20:48:22 CET 2020


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24366

--- Comment #8 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
Created attachment 97332
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=97332&action=edit
Bug 24366: Make sure accessors are used on the right object

This patch makes the Koha::Biblio->to_api method try the accessors on
$self first, and fallback to $self->biblioitem on those he can't.

This way it won't happen that (for example) ->holds will be tried
against ->biblioitem.

To test:
1. Apply this patch
2. Run:
   $ kshell
  k$ prove t/db_dependent/Koha/Biblio.t
=> SUCCESS: Tests pass!
3. Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen at theke.io>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list