From fa85255a0c0da7e643e650252012eb37ebcae3ff 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 Signed-off-by: Tomas Cohen Arazi --- 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.39.2