From c8cd2edeae6f93a045e3b6cc819a2da750f0fc1c Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Thu, 6 Jul 2023 07:44:48 +0100 Subject: [PATCH] Bug 34212: Replace Koha::Checkouts->find with $item->checkout --- C4/Circulation.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Circulation.pm b/C4/Circulation.pm index ab03362e06..0f1b6914aa 100644 --- a/C4/Circulation.pm +++ b/C4/Circulation.pm @@ -1546,7 +1546,7 @@ sub AddIssue { $datedue, $issuedate, # here interpreted as the renewal date ); - $issue = Koha::Checkouts->find( { itemnumber => $item_object->itemnumber } ); + $issue = $item_object->checkout; } else { -- 2.41.0