From: Thomas Berezansky Date: Wed, 21 Dec 2011 21:51:48 +0000 (-0500) Subject: SIP2: Fix transit home on checkin X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=91c31e5eb7e1afcca2f020770c89bc3776696b11;p=evergreen%2Fmasslnc.git SIP2: Fix transit home on checkin The Checkin doesn't need a destination_loc, but the item needs it set. Signed-off-by: Thomas Berezansky Signed-off-by: Sarah E. Chodrow --- diff --git a/Open-ILS/src/perlmods/lib/OpenILS/SIP/Transaction/Checkin.pm b/Open-ILS/src/perlmods/lib/OpenILS/SIP/Transaction/Checkin.pm index cee4fc5dcb..ecafcc3cf0 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/SIP/Transaction/Checkin.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/SIP/Transaction/Checkin.pm @@ -22,7 +22,6 @@ my %fields = ( # 3M extensions: (most of the data is stored under Item) # collection_code => undef, # call_number => undef, - destination_loc => undef, alert_type => undef, # 00,01,02,03,04 or 99 # hold_patron_id => undef, # hold_patron_name => "", @@ -139,7 +138,7 @@ sub do_checkin { $resp->{org} &&= OpenILS::SIP::shortname_from_id($resp->{org}); # Convert id to shortname - $self->destination_loc($resp->{org}) if $resp->{org}; + $self->item->destination_loc($resp->{org}) if $resp->{org}; if ($txt eq 'ROUTE_ITEM') { # Note, this alert_type will be overridden below if this is a hold transit