From ac9a156dc0ce8c91169d18865bc40813ff40e405 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' Signed-off-by: David Nind --- 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 572b16444e..3f42d74626 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.39.2