From 55e9ac2ad3ad0d0eb69048f9b27a61ffd9402661 Mon Sep 17 00:00:00 2001 From: Colin Campbell Date: Fri, 9 Oct 2009 15:32:46 +0100 Subject: [PATCH] Bug 3697 Return due date (SIP Field AH) in item info Although the due date of an on loan item was being retrieved the appropriate field in the Item object was not set causing the due date not to be returned in the item information response Signed-off-by: Galen Charlton --- C4/SIP/ILS/Item.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/C4/SIP/ILS/Item.pm b/C4/SIP/ILS/Item.pm index 4ddb344be1..ac4d50adb9 100644 --- a/C4/SIP/ILS/Item.pm +++ b/C4/SIP/ILS/Item.pm @@ -112,6 +112,7 @@ sub new { $item->{hold_queue} = [ sort priority_sort @$arrayref ]; $item->{hold_shelf} = [( grep { defined $_->{found} and $_->{found} eq 'W' } @{$item->{hold_queue}} )]; $item->{pending_queue} = [( grep {(! defined $_->{found}) or $_->{found} ne 'W' } @{$item->{hold_queue}} )]; + $item->{due_date} = $issue->{date_due}; $self = $item; bless $self, $type; -- 2.39.2