From 64236995151fe92f9052e5e83b2ef4ec9a0d198e Mon Sep 17 00:00:00 2001 From: erickson Date: Thu, 21 Sep 2006 13:52:30 +0000 Subject: [PATCH] disconnecting cstore handle in due_date method after forcing transaction git-svn-id: svn://svn.open-ils.org/ILS/trunk@6175 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/src/perlmods/OpenILS/SIP/Item.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Open-ILS/src/perlmods/OpenILS/SIP/Item.pm b/Open-ILS/src/perlmods/OpenILS/SIP/Item.pm index 185459c7f0..2c26cee194 100644 --- a/Open-ILS/src/perlmods/OpenILS/SIP/Item.pm +++ b/Open-ILS/src/perlmods/OpenILS/SIP/Item.pm @@ -236,6 +236,8 @@ sub due_date { my $circ = $e->search_action_circulation( { target_copy => $self->{copy}->id, checkin_time => undef } )->[0]; + $e->rollback; + if( !$circ ) { syslog('LOG_INFO', "OILS: No open circ found for copy"); return 0; -- 2.11.0