After payment toward one's own account, reset the cached user object so
that it will contain the latest last_xact_id value. This is necessary
for supporting patron credit card payments in the catalog.
git-svn-id: svn://svn.open-ils.org/ILS/trunk@19068
dcc99617-32d9-48b4-a31d-
7c20da2025e4
# update the user to create a new last_xact_id
$e->update_actor_user($patron) or return $e->die_event;
$patron = $e->retrieve_actor_user($patron) or return $e->die_event;
-
$e->commit;
+
+ # update the cached user object if a user is making a payment toward
+ # his/her own account
+ $U->simplereq('open-ils.auth', 'open-ils.auth.session.reset_timeout', $auth, 1)
+ if $user_id == $e->requestor->id;
+
return {last_xact_id => $patron->last_xact_id, payments => \@payment_ids};
}