From 7b2590bba88b41a4e19a0c9d4a44488b9507d8af Mon Sep 17 00:00:00 2001 From: erickson Date: Sat, 2 Sep 2006 16:03:04 +0000 Subject: [PATCH] made the circ retrieval less strict for marking an item lost git-svn-id: svn://svn.open-ils.org/ILS/trunk@5860 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/src/perlmods/OpenILS/Application/Circ.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Open-ILS/src/perlmods/OpenILS/Application/Circ.pm b/Open-ILS/src/perlmods/OpenILS/Application/Circ.pm index 5e29e43594..296f35c1b9 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/Circ.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/Circ.pm @@ -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) { -- 2.43.2