From 30dae28d675288a7df67ec72a10d68de031b7f54 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Thu, 11 Apr 2019 10:01:26 +0100 Subject: [PATCH] Bug 22684: Correction to accessor to match guidlines Signed-off-by: Martin Renvoize --- Koha/Acquisition/Basket.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/Koha/Acquisition/Basket.pm b/Koha/Acquisition/Basket.pm index 5bda3ab303..59c821449b 100644 --- a/Koha/Acquisition/Basket.pm +++ b/Koha/Acquisition/Basket.pm @@ -43,6 +43,7 @@ Returns the vendor sub bookseller { my ($self) = @_; my $bookseller_rs = $self->_result->booksellerid; + return unless $bookseller_rs; return Koha::Acquisition::Bookseller->_new_from_dbic( $bookseller_rs ); } -- 2.20.1