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

Evergreen Git git at git.evergreen-ils.org
Wed Dec 19 14:36:32 EST 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  0f4f8d00092b6f9c1377c7353c3eb98e767061b9 (commit)
      from  0cc470d49fc4d41e49a9f6752120135af9ac6a8f (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 0f4f8d00092b6f9c1377c7353c3eb98e767061b9
Author: James Fournie <jfournie at sitka.bclibraries.ca>
Date:   Tue Dec 18 12:45:51 2012 -0800

    Check for a selection_depth returned from title_hold.is_possible.
    See Launchpad 1064651 for details.  This is a quick fix which solves a
    fairly serious issue whereby copies outside of a hard boundary could fill
    holds when they are placed within the TPAC in the staff client.
    
    Signed-off-by: James Fournie <jfournie at sitka.bclibraries.ca>
    Signed-off-by: Jason Stephenson <jstephenson at mvlc.org>

diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Holds.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Holds.pm
index 0b188bf..d713fd3 100644
--- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Holds.pm
+++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Holds.pm
@@ -93,6 +93,9 @@ sub test_and_create_hold_batch {
         ($res) = $self->method_lookup(
             'open-ils.circ.title_hold.is_possible')->run($auth, $params, $override ? $oargs : {});
         if ($res->{'success'} == 1) {
+
+            $params->{'depth'} = $res->{'depth'} if $res->{'depth'};
+
             my $ahr = construct_hold_request_object($params);
             my ($res2) = $self->method_lookup(
                 $override

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

Summary of changes:
 .../perlmods/lib/OpenILS/Application/Circ/Holds.pm |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list