From 3d1b5932b4e1dc1ad9c3e00390a3fbb2a1d0c402 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 Signed-off-by: Martin Renvoize Signed-off-by: Katrin Fischer --- 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 04b920cd5f..2dc5029375 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.5