From: erickson Date: Tue, 15 Sep 2009 16:13:00 +0000 (+0000) Subject: for now, don't allow inspect calls on copies that have not been created in the db... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=f00e4fa51e27b25cbb894e273d764b0b71de1678;p=working%2FEvergreen.git for now, don't allow inspect calls on copies that have not been created in the db, IOW pre-cat copies that have never circulated git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_6@14022 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/perlmods/OpenILS/Application/Circ/Circulate.pm b/Open-ILS/src/perlmods/OpenILS/Application/Circ/Circulate.pm index 63fa7ebe12..efe7428fea 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/Circ/Circulate.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/Circ/Circulate.pm @@ -895,6 +895,9 @@ sub run_indb_circ_test { sub do_inspect { my $self = shift; + + return OpenILS::Event->new('ASSET_COPY_NOT_FOUND') unless $self->copy; + $self->run_indb_circ_test; my $results = {