using the circulating location to determine due date overlap and not
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 26 Oct 2006 14:17:09 +0000 (14:17 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 26 Oct 2006 14:17:09 +0000 (14:17 +0000)
the circ_lib of the actual copy

git-svn-id: svn://svn.open-ils.org/ILS/trunk@6515 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/perlmods/OpenILS/Application/Circ/Circulate.pm

index a862d2b..c32f918 100644 (file)
@@ -1122,7 +1122,11 @@ sub apply_modified_due_date {
       # if the due_date lands on a day when the location is closed
       return unless $copy and $circ->due_date;
 
-               my $org = (ref $copy->circ_lib) ? $copy->circ_lib->id : $copy->circ_lib;
+               #my $org = (ref $copy->circ_lib) ? $copy->circ_lib->id : $copy->circ_lib;
+
+               # due-date overlap should be determined by the location the item
+               # is checked out from, not the owning or circ lib of the item
+               my $org = $self->editor->requestor->ws_ou;
 
       $logger->info("circulator: circ searching for closed date overlap on lib $org".
                        " with an item due date of ".$circ->due_date );