From 24d7789e0026bb7830df5289cda1a39335c066f6 Mon Sep 17 00:00:00 2001 From: erickson Date: Tue, 9 Jun 2009 20:12:29 +0000 Subject: [PATCH] removed unnecessary check for the existence of matrix_test_result git-svn-id: svn://svn.open-ils.org/ILS/trunk@13353 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- .../perlmods/OpenILS/Application/Circ/Circulate.pm | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/Open-ILS/src/perlmods/OpenILS/Application/Circ/Circulate.pm b/Open-ILS/src/perlmods/OpenILS/Application/Circ/Circulate.pm index e917793007..2c6d4bc648 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/Circ/Circulate.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/Circ/Circulate.pm @@ -866,17 +866,15 @@ sub run_indb_circ_test { my $dbfunc = ($self->is_renewal) ? 'action.item_user_renew_test' : 'action.item_user_circ_test'; - my $results = ($self->matrix_test_result) ? - $self->matrix_test_result : - $self->editor->json_query( - { from => [ - $dbfunc, - $self->editor->requestor->ws_ou, - ($self->is_precat or $self->is_noncat) ? undef : $self->copy->id, - $self->patron->id, - ] - } - ); + my $results = $self->editor->json_query( + { from => [ + $dbfunc, + $self->editor->requestor->ws_ou, + ($self->is_precat or $self->is_noncat) ? undef : $self->copy->id, + $self->patron->id, + ] + } + ); $self->circ_test_success($U->is_true($results->[0]->{success})); -- 2.11.0