From b35d4aa58c3ca9fb5c27e5fc70fef3ed21d1e4ec Mon Sep 17 00:00:00 2001 From: Dan Wells Date: Thu, 22 Mar 2018 10:31:58 -0400 Subject: [PATCH] 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. Signed-off-by: Dan Wells --- Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 3f3d9461b1..c2d55186cf 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) { -- 2.11.0