From: erickson Date: Wed, 20 Sep 2006 14:23:17 +0000 (+0000) Subject: forcing connected cstore editor since sane attempts failed X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=8f5cff434b4c502d90db430b4717d49ebd37bd21;p=evergreen%2Fpines.git forcing connected cstore editor since sane attempts failed git-svn-id: svn://svn.open-ils.org/ILS/trunk@6157 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 b931cc4af1..185459c7f0 100644 --- a/Open-ILS/src/perlmods/OpenILS/SIP/Item.pm +++ b/Open-ILS/src/perlmods/OpenILS/SIP/Item.pm @@ -227,7 +227,11 @@ sub hold_queue_position { sub due_date { my $self = shift; - my $e = OpenILS::SIP->editor(); + + # this should force correct circ fetching + require OpenILS::Utils::CStoreEditor; + my $e = OpenILS::Utils::CStoreEditor->new(xact => 1); + #my $e = OpenILS::SIP->editor(); my $circ = $e->search_action_circulation( { target_copy => $self->{copy}->id, checkin_time => undef } )->[0];