[open-ils-commits] r15108 - trunk/Open-ILS/src/perlmods/OpenILS/Application/Circ (miker)

svn at svn.open-ils.org svn at svn.open-ils.org
Tue Dec 8 16:25:00 EST 2009


Author: miker
Date: 2009-12-08 16:24:54 -0500 (Tue, 08 Dec 2009)
New Revision: 15108

Modified:
   trunk/Open-ILS/src/perlmods/OpenILS/Application/Circ/Circulate.pm
Log:
thinko on field name; do not set $self->due_date, just $circ->due_date

Modified: trunk/Open-ILS/src/perlmods/OpenILS/Application/Circ/Circulate.pm
===================================================================
--- trunk/Open-ILS/src/perlmods/OpenILS/Application/Circ/Circulate.pm	2009-12-08 21:21:03 UTC (rev 15107)
+++ trunk/Open-ILS/src/perlmods/OpenILS/Application/Circ/Circulate.pm	2009-12-08 21:24:54 UTC (rev 15108)
@@ -1613,7 +1613,7 @@
     }
 
     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 @@
             }
             
             $circ->due_date(clense_ISO8601($due_date->strftime('%FT%T%z')));
-            $self->due_date($circ->due_date);
             $changed = 1;
         }
 



More information about the open-ils-commits mailing list