Bug 21206: Fix SwitchOnSiteCheckouts.t
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 15 Feb 2019 13:38:14 +0000 (10:38 -0300)
committerroot <root@f1ebe1bec408>
Tue, 26 Feb 2019 13:24:07 +0000 (13:24 +0000)
Fix conflict with
  commit f8544ba5799c457057d42aefc63c88e15a08b096
  Bug 21999: Move attributes to a variable to not dup them

Thanks tests!

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

C4/Circulation.pm

index d237657..5d059a8 100644 (file)
@@ -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;
             }