bug 2473: correct display of items.content
authorGalen Charlton <galen.charlton@liblime.com>
Tue, 5 Aug 2008 20:01:42 +0000 (15:01 -0500)
committerJoshua Ferraro <jmf@liblime.com>
Tue, 5 Aug 2008 20:12:02 +0000 (15:12 -0500)
Correct bug in output of overdue notices that has
items.content displaying only the number of columns
in each items.content structure (currently, 4).

Patch inspired by patch submitted by Paul Poulain.

[LL bug 31]

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
misc/cronjobs/overdue_notices.pl

index ced4e64..64e3722 100755 (executable)
@@ -363,7 +363,7 @@ END_SQL
                 my $titles = "";
                 while ( my $item_info = $sth2->fetchrow_hashref() ) {
                     my @item_info = map { $_ =~ /date$/ ? format_date( $item_info->{$_} ) : $item_info->{$_} || '' } @item_content_fields;
-                    $titles .= join "\t", @item_info . "\n";
+                    $titles .= join("\t", @item_info) . "\n";
                 }
                 $sth2->finish;