From: Jason Stephenson Date: Sat, 11 Oct 2014 20:20:07 +0000 (-0400) Subject: Fix checkoutitem in NCIP::ILS::Evergreen. X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=cf910e93972bd16601e43e775a08f68e62898ed6;p=NCIPServer.git Fix checkoutitem in NCIP::ILS::Evergreen. Even though, the function documentation for checkout(.full) says a copy object works, it apparently doesn't, so I switched to using the copy_id parameter with $copy->id(). Signed-off-by: Jason Stephenson --- diff --git a/lib/NCIP/ILS/Evergreen.pm b/lib/NCIP/ILS/Evergreen.pm index 7f71e51..01f1ea4 100644 --- a/lib/NCIP/ILS/Evergreen.pm +++ b/lib/NCIP/ILS/Evergreen.pm @@ -809,7 +809,7 @@ sub checkoutitem { # the user is not allowed to check out this item, without getting # into details. my $params = { - copy => $copy, + copy_id => $copy->id(), patron_id => $user->id(), }; my $r = $U->simplereq(