Online Renewal - Show Updated Expire Date test_quipu
authorTerran McCanna <tmccanna@georgialibraries.org>
Tue, 25 Oct 2022 16:56:13 +0000 (12:56 -0400)
committerChris Sharp <csharp@georgialibraries.org>
Sun, 30 Oct 2022 17:12:36 +0000 (13:12 -0400)
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 5ef85d0..89a8b05 100644 (file)
@@ -2653,6 +2653,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;