From 4816f037dec83b3cb53339222bc9dbf835c2770f Mon Sep 17 00:00:00 2001
From: miker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Date: Tue, 8 Dec 2009 21:24:54 +0000
Subject: [PATCH] thinko on field name; do not set $self->due_date, just
 $circ->due_date

git-svn-id: svn://svn.open-ils.org/ILS/trunk@15108 dcc99617-32d9-48b4-a31d-7c20da2025e4
---
 Open-ILS/src/perlmods/OpenILS/Application/Circ/Circulate.pm | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/Open-ILS/src/perlmods/OpenILS/Application/Circ/Circulate.pm b/Open-ILS/src/perlmods/OpenILS/Application/Circ/Circulate.pm
index 7a294ce4cc..fea40d1133 100644
--- a/Open-ILS/src/perlmods/OpenILS/Application/Circ/Circulate.pm
+++ b/Open-ILS/src/perlmods/OpenILS/Application/Circ/Circulate.pm
@@ -1613,7 +1613,7 @@ sub booking_adjusted_due_date {
     }
 
     if (my $booking_item = $self->editor->search_booking_resource( { barcode => $copy->barcode } )) {
-        my $resource_type = $self->editor->retrieve_booking_resource_type( $booking_item->resource_type );
+        my $resource_type = $self->editor->retrieve_booking_resource_type( $booking_item->type );
 
         my $stop_circ_setting = $U->ou_ancestor_setting_value( $self->circ_lib, 'circ.booking_reservation.stop_circ', $self->editor );
         my $shorten_circ_setting = $resource_type->elbow_room ||
@@ -1649,7 +1649,6 @@ sub booking_adjusted_due_date {
             }
             
             $circ->due_date(clense_ISO8601($due_date->strftime('%FT%T%z')));
-            $self->due_date($circ->due_date);
             $changed = 1;
         }
 
-- 
2.11.0