From: erickson Date: Thu, 21 Sep 2006 13:52:30 +0000 (+0000) Subject: disconnecting cstore handle in due_date method after forcing transaction X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=64236995151fe92f9052e5e83b2ef4ec9a0d198e;p=evergreen%2Fpines.git 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 --- 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;