From 902ce3c87c26b3eb19195b2d61a9ba3f514339f3 Mon Sep 17 00:00:00 2001 From: Julian Maurice Date: Fri, 5 Apr 2024 14:13:03 +0200 Subject: [PATCH] Bug 35959: Fix C3 merge of Koha::Account::Debit, Koha::Account::Credit Test plan: Run the following commands perl -c Koha/Account/Debit.pm perl -c Koha/Account/Credit.pm They should all print 'syntax OK' --- Koha/Account/Line.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Koha/Account/Line.pm b/Koha/Account/Line.pm index 7496f17677..2df128a3b1 100644 --- a/Koha/Account/Line.pm +++ b/Koha/Account/Line.pm @@ -27,7 +27,6 @@ use Koha::Account::Offsets; use Koha::Database; use Koha::DateUtils qw( dt_from_string ); use Koha::Exceptions::Account; -use Koha::Items; use Koha::Patron::Debarments; use base qw(Koha::Object Koha::Object::Mixin::AdditionalFields); @@ -80,6 +79,7 @@ sub item { my ( $self ) = @_; my $rs = $self->_result->itemnumber; return unless $rs; + require Koha::Item; return Koha::Item->_new_from_dbic( $rs ); } -- 2.30.2