fix date formatting in overdue_notices.pl

This makes overdue_notices.pl format dates in fields that both start and end with 'date'.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
This commit is contained in:
Pianohacker 2008-09-26 14:57:25 -05:00 committed by Galen Charlton
parent 5170e31ea3
commit 861069e269
1 changed files with 1 additions and 1 deletions

View File

@ -363,7 +363,7 @@ END_SQL
$sth2->execute( $borrowernumber, $mindays, $maxdays );
my $titles = "";
while ( my $item_info = $sth2->fetchrow_hashref() ) {
my @item_info = map { $_ =~ /date$/ ? format_date( $item_info->{$_} ) : $item_info->{$_} || '' } @item_content_fields;
my @item_info = map { $_ =~ /^date|date$/ ? format_date( $item_info->{$_} ) : $item_info->{$_} || '' } @item_content_fields;
$titles .= join("\t", @item_info) . "\n";
}
$sth2->finish;