From a7997ca715b6f3cc708c1ee07d260c4a11b73f95 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Thu, 11 Apr 2019 10:21:59 +0100 Subject: [PATCH] Bug 22686: Update 'contacts' to match new guidelines Signed-off-by: Martin Renvoize --- Koha/Acquisition/Bookseller.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Koha/Acquisition/Bookseller.pm b/Koha/Acquisition/Bookseller.pm index f2f08db109..f4ef582387 100644 --- a/Koha/Acquisition/Bookseller.pm +++ b/Koha/Acquisition/Bookseller.pm @@ -55,7 +55,9 @@ Returns the list of contacts for the vendor sub contacts { my ($self) = @_; - return Koha::Acquisition::Bookseller::Contacts->search( { booksellerid => $self->id } ); + my $contacts_rs = $self->_result->aqcontacts; + return unless $contacts_rs; + return Koha::Acquisition::Bookseller::Contacts->_new_from_dbic($contacts_rs); } =head3 subscriptions -- 2.20.1