Bug 34212: Replace Koha::Checkouts->find with $item->checkout

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Martin Renvoize 2023-07-06 07:44:48 +01:00 committed by Tomas Cohen Arazi
parent d20e4ebbde
commit fa85255a0c
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F

View file

@ -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 {