From: erickson Date: Thu, 26 Oct 2006 14:17:09 +0000 (+0000) Subject: using the circulating location to determine due date overlap and not X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=eba1f23d5e898798b9b12b1eafccb6a44085e052;p=Evergreen.git using the circulating location to determine due date overlap and not the circ_lib of the actual copy git-svn-id: svn://svn.open-ils.org/ILS/trunk@6515 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/perlmods/OpenILS/Application/Circ/Circulate.pm b/Open-ILS/src/perlmods/OpenILS/Application/Circ/Circulate.pm index a862d2bad1..c32f9183af 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/Circ/Circulate.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/Circ/Circulate.pm @@ -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 );