for now, don't allow inspect calls on copies that have not been created in the db...
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 15 Sep 2009 16:13:00 +0000 (16:13 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 15 Sep 2009 16:13:00 +0000 (16:13 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_6@14022 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/perlmods/OpenILS/Application/Circ/Circulate.pm

index 63fa7eb..efe7428 100644 (file)
@@ -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 = {