From 236e3babd1af693603b9155bc48281a13d5fa0cf Mon Sep 17 00:00:00 2001 From: finlayt Date: Wed, 21 Aug 2002 01:40:47 +0000 Subject: [PATCH] Fixed a little bug so that flags get recalculated after an item is issued. --- circ/circulation.pl | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/circ/circulation.pl b/circ/circulation.pl index f84c7521d5..b3a528019b 100755 --- a/circ/circulation.pl +++ b/circ/circulation.pl @@ -101,7 +101,7 @@ if ($print eq 'yes' && $borrowernumber ne ''){ -# get the currently issued books...... +# get the borrower information..... my $borrower; my $flags; if ($borrowernumber) { @@ -120,14 +120,14 @@ if (my $qnumber = $query->param('questionnumber')) { } -# if the barcode is set + my ($iteminformation, $duedate, $rejected, $question, $questionnumber, $defaultanswer); my $year=$query->param('year'); my $month=$query->param('month'); my $day=$query->param('day'); - +# if the barcode is set if ($barcode) { $barcode = cuecatbarcodedecode($barcode); my ($datedue, $invalidduedate) = fixdate($year, $month, $day); @@ -141,6 +141,11 @@ if ($barcode) { } } +# reload the borrower info for the sake of reseting the flags..... +if ($borrowernumber) { + ($borrower, $flags) = getpatroninformation(\%env,$borrowernumber,0); +} + ################################################################################## # HTML code....