From ffe70d85c301cccab2bfe4f7b914a77f0a5c9989 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 --- 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 8f439e5997..5e3e6cbdce 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.11.0