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

Evergreen Git git at git.evergreen-ils.org
Wed May 23 08:45:27 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  1cf719479266e488a700cfa40fb811e7cf4174c6 (commit)
      from  5537727d1b7e50452f1933e401998de192ecfe02 (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 1cf719479266e488a700cfa40fb811e7cf4174c6
Author: Bill Erickson <berick at esilibrary.com>
Date:   Tue May 22 16:22:14 2012 -0400

    TPAC: recover the ability to override hold placement failures
    
    There is a certain class of hold failure events (e.g. HOLD_EXISTS,
    HOLD_ITEM_CHECKED_OUT) that can be overridden by patrons when they have
    the correct override permission.  This change recovers that ability,
    which was recently removed with 99e8fc893a.
    
    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 eaa9622..e349f3f 100644
--- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Account.pm
+++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Account.pm
@@ -905,7 +905,8 @@ sub attempt_hold_placement {
                             $hdata->{could_override} = 1;
                             $hdata->{age_protect} = 1;
                         } else {
-                            $hdata->{could_override} = $result->{place_unfillable};
+                            $hdata->{could_override} = $result->{place_unfillable} || 
+                                $self->test_could_override($hdata->{hold_failed_event});
                         }
                     } elsif (ref $result eq 'ARRAY') {
                         $hdata->{hold_failed_event} = $result->[0];
@@ -914,7 +915,8 @@ sub attempt_hold_placement {
                             $hdata->{could_override} = 1;
                             $hdata->{age_protect} = 1;
                         } else {
-                            $hdata->{could_override} = $result->[4]; # place_unfillable
+                            $hdata->{could_override} = $result->[4] || # place_unfillable
+                                $self->test_could_override($hdata->{hold_failed_event});
                         }
                     }
                 }

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

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


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list