From 53354923a4cbe706a76d01338393925c332c9a91 Mon Sep 17 00:00:00 2001 From: erickson Date: Tue, 15 Sep 2009 16:12:42 +0000 Subject: [PATCH] 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/trunk@14021 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/src/perlmods/OpenILS/Application/Circ/Circulate.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Open-ILS/src/perlmods/OpenILS/Application/Circ/Circulate.pm b/Open-ILS/src/perlmods/OpenILS/Application/Circ/Circulate.pm index 6bd3481b8..dc6813786 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/Circ/Circulate.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/Circ/Circulate.pm @@ -896,6 +896,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 = { -- 2.11.0