[open-ils-commits] [GIT] Evergreen ILS branch master updated. dad78e0222d35454ae0b2e38e855b1ab49c1150b

Evergreen Git git at git.evergreen-ils.org
Tue Mar 20 12:35:17 EDT 2012


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".

The branch, master has been updated
       via  dad78e0222d35454ae0b2e38e855b1ab49c1150b (commit)
      from  6a1c6b68f9459b6ed87b0f1ceb7573aafc9bc8b7 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit dad78e0222d35454ae0b2e38e855b1ab49c1150b
Author: Bill Erickson <berick at esilibrary.com>
Date:   Tue Feb 21 11:47:34 2012 -0500

    TPac: avoid showing replaced addresses
    
    Replaced (negative-id) addresses should never be visible to the patron.
    Remove them from the collected list of addrs.
    
    Signed-off-by: Bill Erickson <berick at esilibrary.com>
    Signed-off-by: Mike Rylander <mrylander at gmail.com>

diff --git a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Account.pm b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Account.pm
index 489594c..fddb0ed 100644
--- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Account.pm
+++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Account.pm
@@ -34,6 +34,10 @@ sub prepare_extended_user_info {
 
     $e->rollback if $local_xact;
 
+    # discard replaced (negative-id) addresses.
+    $self->ctx->{user}->addresses([
+        grep {$_->id > 0} @{$self->ctx->{user}->addresses} ]);
+
     return Apache2::Const::HTTP_INTERNAL_SERVER_ERROR 
         unless $self->ctx->{user};
 

-----------------------------------------------------------------------

Summary of changes:
 .../lib/OpenILS/WWW/EGCatLoader/Account.pm         |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list