made the circ retrieval less strict for marking an item lost
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sat, 2 Sep 2006 16:03:04 +0000 (16:03 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sat, 2 Sep 2006 16:03:04 +0000 (16:03 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@5860 dcc99617-32d9-48b4-a31d-7c20da2025e4

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

index 5e29e43..296f35c 100644 (file)
@@ -251,7 +251,11 @@ sub set_circ_lost {
        my $session             = $U->start_db_session(); 
 
        # grab the circulation
-       ( $circ ) = $U->fetch_open_circulation( $copy->id );
+#      ( $circ ) = $U->fetch_open_circulation( $copy->id );
+#      return 1 unless $circ;
+
+       $circ = new_editor()->search_action_circulation(
+               { checkin_time => undef, target_copy => $copy->id } )->[0];
        return 1 unless $circ;
 
        if($islost) {