Permalink
Browse files

Duedate now checked in two places (!!) Check override in both

  • Loading branch information...
colinsc authored and J. David Bavousett committed Jun 16, 2009
1 parent ba971da commit 6ba2605da3a25e87566b24afe5b6411cac3addfc
Showing with 6 additions and 1 deletion.
  1. +6 −1 C4/Circulation.pm
View
@@ -681,7 +681,12 @@ sub CanBookBeIssued {
# Offline circ calls AddIssue directly, doesn't run through here
# So issuingimpossible should be ok.
}
- $issuingimpossible{INVALID_DATE} = $duedate->output('syspref') unless ( $duedate && $duedate->output('iso') ge C4::Dates->today('iso') );
+ my $skip_duedate_check = C4::Context->preference('AllowDueDateInPast');
+ if (!$skip_duedate_check) {
+ unless ( $duedate && $duedate->output('iso') ge C4::Dates->today('iso') ) {
+ $issuingimpossible{INVALID_DATE} = $duedate->output('syspref');
+ }
+ }
#
# BORROWER STATUS

0 comments on commit 6ba2605

Please sign in to comment.