Online Renewal - Show Updated Expire Date
authorTerran McCanna <tmccanna@georgialibraries.org>
Tue, 25 Oct 2022 16:56:13 +0000 (12:56 -0400)
committerJason Stephenson <jstephenson@cwmars.org>
Tue, 29 Nov 2022 19:49:14 +0000 (14:49 -0500)
Without this, the page loads the initial patron expiration date
and continues to show the button to renew the account.

Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Account.pm

index e1b248b..a0e7b7d 100644 (file)
@@ -2654,6 +2654,8 @@ sub load_myopac_main {
         })
     );
 
+    # PINES - need to make sure we're retrieving current info or else changed expire date won't show up
+    $self->prepare_extended_user_info;
     # PINES - check whether or not to provide account renewal link
     if ($self->ctx->{user}->billing_address) {
         $self->ctx->{valid_billing_address} = $self->editor->retrieve_actor_user_address($self->ctx->{user}->billing_address)->valid;