From f8d250abfa61c30c1141e8009651e782bb0f26f3 Mon Sep 17 00:00:00 2001 From: rangi Date: Thu, 26 Jun 2003 09:31:39 +0000 Subject: [PATCH] Fixing the sticky due date problem reported by jerome --- circ/circulation.pl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/circ/circulation.pl b/circ/circulation.pl index e284307ba9..62d8906e73 100755 --- a/circ/circulation.pl +++ b/circ/circulation.pl @@ -138,7 +138,6 @@ my $day=$query->param('day'); if ($barcode) { $barcode = cuecatbarcodedecode($barcode); my ($datedue, $invalidduedate) = fixdate($year, $month, $day); - unless ($invalidduedate) { $env{'datedue'}=$datedue; my @time=localtime(time); @@ -361,7 +360,7 @@ sub fixdate { } elsif (($month == 2) && ($day > 28) && (($year%4) && ((!($year%100) || ($year%400))))) { $invalidduedate="Invalid Due Date Specified. Book was not issued. $year is not a leap year.

\n"; } else { - $date=format_date("$year-$month-$day"); + $date="$year-$month-$day"; } } } -- 2.39.5