@@ -, +, @@ Bug 6030 : overdue_notices :Removing warning Two extra warnings were issued when using html Bug 6030 : Letters can be html in overdu_notices.pl --- misc/cronjobs/overdue_notices.pl | 13 ++++++++++--- 1 files changed, 10 insertions(+), 3 deletions(-) --- a/misc/cronjobs/overdue_notices.pl +++ a/misc/cronjobs/overdue_notices.pl @@ -483,7 +483,12 @@ END_SQL $verbose and warn "STH2 PARAMS: borrowernumber = $borrowernumber, mindays = $mindays, maxdays = $maxdays"; $sth2->execute(@params); my $itemcount = 0; - my $titles = ""; + my $titles; + if ($htmlfilename) { + $titles = ""; + $titles .= ""; + } my @items = (); my $j = 0; @@ -521,8 +526,10 @@ END_SQL next PERIOD; } - if ( $exceededPrintNoticesMaxLines ) { - $letter->{'content'} .= "List too long for form; please check your account online for a complete list of your overdue items."; + $letter->{'content-type'}="text/".($htmlfilename?"html":"plain"); + + if ($exceededPrintNoticesMaxLines) { + $letter->{'content'} .= "List too long for form; please check your account online for a complete list of your overdue items."; } my @misses = grep { /./ } map { /^([^>]*)[>]+/; ( $1 || '' ); } split /\{'content'}; --
" . join( "", @$columns_def_hashref{@item_content_fields} ); + $titles .= "