From 8bbfd0c027861764ec0e256e0f43b020da8f8af9 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 15 Feb 2019 10:38:14 -0300 Subject: [PATCH] Bug 21206: Fix SwitchOnSiteCheckouts.t Fix conflict with commit f8544ba5799c457057d42aefc63c88e15a08b096 Bug 21999: Move attributes to a variable to not dup them Thanks tests! Signed-off-by: Nick Clemens --- C4/Circulation.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Circulation.pm b/C4/Circulation.pm index d237657dcb..5d059a890d 100644 --- a/C4/Circulation.pm +++ b/C4/Circulation.pm @@ -1367,7 +1367,7 @@ sub AddIssue { auto_renew => $auto_renew ? 1 : 0, }; - $issue = Koha::Checkouts->find( { itemnumber => $item->{itemnumber} } ); + $issue = Koha::Checkouts->find( { itemnumber => $item->itemnumber } ); if ($issue) { $issue->set($issue_attributes)->store; } -- 2.39.5