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:12:42 +0000 (16:12 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 15 Sep 2009 16:12:42 +0000 (16:12 +0000)
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

index 6bd3481..dc68137 100644 (file)
@@ -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 = {