From d6b29be58e600eb969a2c058a06c88029e32d1ae Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Wed, 11 Dec 2019 11:53:51 +0000 Subject: [PATCH] Bug 15751: Add ModDateLastSeen to ProcessOfflineReturn Test plan: 1) Before the patch when one checks in something using the KOCT the last seen date is not updated. 2) After the patch when one checks in something using the KOCT the last seen date is updated. Signed-off-by: Laurence Rault Signed-off-by: Marcel de Rooy Signed-off-by: Martin Renvoize Signed-off-by: Joy Nelson (cherry picked from commit 47414f97c1358da9cd79e1e884ab1f9d74516014) Signed-off-by: Lucas Gass --- C4/Circulation.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/C4/Circulation.pm b/C4/Circulation.pm index b6feb6d5a6..727fbf890b 100644 --- a/C4/Circulation.pm +++ b/C4/Circulation.pm @@ -3803,6 +3803,8 @@ sub ProcessOfflineReturn { my $itemnumber = $item->itemnumber; my $issue = GetOpenIssue( $itemnumber ); if ( $issue ) { + my $leave_item_lost = C4::Context->preference("BlockReturnOfLostItems") ? 1 : 0; + ModDateLastSeen( $itemnumber, $leave_item_lost ); MarkIssueReturned( $issue->{borrowernumber}, $itemnumber, -- 2.39.5