From 3c2e915019f1a5e740a66e18fe8bd7a8d587d1d8 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Thu, 29 Jun 2017 17:53:14 -0400 Subject: [PATCH] LP#1694529 Claims returned updates patron last-xact-id Force an upate to the user last_xact_id value when making an item claims returned, since the process results in patron record changes. Signed-off-by: Bill Erickson Signed-off-by: Galen Charlton --- Open-ILS/src/perlmods/lib/OpenILS/Application/Circ.pm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ.pm index e24a3e928c..54230dcc13 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ.pm @@ -538,6 +538,11 @@ sub set_circ_claims_returned { } } + # Now that all data has been munged, do a no-op update of + # the patron to force a change of the last_xact_id value. + $e->update_actor_user($e->retrieve_actor_user($circ->usr)) + or return $e->die_event; + $e->commit; return 1; } -- 2.43.2