From 906559fd9d90d1d5c970690164501b08e9f290bd Mon Sep 17 00:00:00 2001 From: erickson Date: Mon, 12 Apr 2010 14:20:56 +0000 Subject: [PATCH] w/ in-db circ, if patron permit fails with 'no_item', continue on if this is a noncat checkout git-svn-id: svn://svn.open-ils.org/ILS/trunk@16201 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/src/perlmods/OpenILS/Application/Circ/Circulate.pm | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Open-ILS/src/perlmods/OpenILS/Application/Circ/Circulate.pm b/Open-ILS/src/perlmods/OpenILS/Application/Circ/Circulate.pm index 214143924d..fa197ecf11 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/Circ/Circulate.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/Circ/Circulate.pm @@ -998,9 +998,12 @@ sub run_patron_permit_scripts { my $results = $self->run_indb_circ_test; unless($self->circ_test_success) { - push(@allevents, OpenILS::Event->new( - $LEGACY_CIRC_EVENT_MAP->{$_->{fail_part}} || $_->{fail_part} - )) for @$results; + # no_item result is OK during noncat checkout + unless(@$results == 1 && $results->[0]->{fail_part} eq 'no_item' and $self->is_noncat) { + push(@allevents, OpenILS::Event->new( + $LEGACY_CIRC_EVENT_MAP->{$_->{fail_part}} || $_->{fail_part} + )) for @$results; + } } } else { -- 2.11.0