From 0883b382b924ca157f365b8c095d14181691826c Mon Sep 17 00:00:00 2001 From: finlayt Date: Thu, 29 Aug 2002 00:00:45 +0000 Subject: [PATCH] Fixed bug in flags display --- circ/returns.pl | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/circ/returns.pl b/circ/returns.pl index 0436274f11..5482b879e8 100755 --- a/circ/returns.pl +++ b/circ/returns.pl @@ -328,15 +328,18 @@ $borrower->{'surname'}, $borrower->{'title'} $borrower->{'firstname'}
EOF my $flags = $borrower->{'flags'}; my $flaginfotext=''; + my $displayflag = ''; my $color = ''; foreach my $flag (sort keys %$flags) { ($color eq $linecolor1) ? ($color=$linecolor2) : ($color=$linecolor1); if ($flags->{$flag}->{'noissues'}) { - $flag = "$flag"; + $displayflag = "$flag"; + } else { + $displayflag = $flag; } if ($flag eq 'CHARGES') { $flaginfotext.= <<"EOF"; -$flag +$displayflag $flags->{$flag}->{'message'} {'borrowernumber'} onClick="openWindow(this, 'Payment', 480,640)">Payment @@ -353,7 +356,7 @@ $iteminformation->{'title'} ($branches->{$iteminformation->{'holdingbranch'}}->{'branchname'})
EOF } - $flaginfotext.="$flag$itemswaiting\n"; + $flaginfotext.="$displayflag$itemswaiting\n"; } elsif ($flag eq 'ODUES') { my $itemsoverdue = ''; my $items = $flags->{$flag}->{'itemlist'}; @@ -367,10 +370,10 @@ $iteminformation->{'title'}
EOF } - $flaginfotext .= "$flag$itemsoverdue\n"; + $flaginfotext .= "$displayflag$itemsoverdue\n"; } else { $flaginfotext.= <<"EOF"; -$flag +$displayflag $flags->{$flag}->{'message'} EOF }