forcing connected cstore editor since sane attempts failed
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 20 Sep 2006 14:23:17 +0000 (14:23 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 20 Sep 2006 14:23:17 +0000 (14:23 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@6157 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/perlmods/OpenILS/SIP/Item.pm

index b931cc4..185459c 100644 (file)
@@ -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];