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

Evergreen Git git at git.evergreen-ils.org
Thu Mar 22 14:15:04 EDT 2018


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  80d9f5faa04e87f5b5e90b85c0f8c3ab0d3ed30d (commit)
      from  2ffbacfc992eb0d49f5845e3c24ce0c185e93cb3 (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 80d9f5faa04e87f5b5e90b85c0f8c3ab0d3ed30d
Author: Dan Wells <dbw2 at calvin.edu>
Date:   Thu Mar 22 10:31:58 2018 -0400

    LP#1755502 Fix hold user test
    
    Now that we are fleshing this field, we need to dig a little deeper
    for the 'id' to test if we are the same user.
    
    To test
    -------
    [1] Set up a patron with a hold request and with a item
        on the hold shelf that fills the hold.
    [2] Check out the item to patron. Note that you
        will get a ITEM_ON_HOLDS_SHELF alert, even though the
        item is on hold for that patron. Cancel the alert.
    [3] Apply the patch and repeat step 2. This time, the checkout
        will proceed.
    [4] Set up another patron with a hold request and an item
        on the hold shelf, then checkout it at to a _different_ patron.
        Verify that the ITEM_ON_HOLDS_SHELF alert appears.
    
    This patch also fixes test failures caught by the
    19-lp1306666-abort-transit-copy-status.t live test.
    
    Signed-off-by: Dan Wells <dbw2 at calvin.edu>
    Signed-off-by: Galen Charlton <gmc at equinoxinitiative.org>

diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm
index 3f3d946..c2d5518 100644
--- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm
+++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm
@@ -1126,7 +1126,7 @@ sub check_captured_holds {
         ]
     )->[0];
 
-    if ($hold and $hold->usr == $patron->id) {
+    if ($hold and $hold->usr->id == $patron->id) {
         $self->checkout_is_for_hold(1);
         return undef;
     } elsif ($hold) {

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

Summary of changes:
 .../lib/OpenILS/Application/Circ/Circulate.pm      |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list