https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24366 --- Comment #8 from Tomás Cohen Arazi <tomascohen@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@theke.io> -- You are receiving this mail because: You are watching all bug changes.