@@ -, +, @@ 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 | 14 ++++++++++---- 1 files changed, 10 insertions(+), 4 deletions(-) --- a/misc/cronjobs/overdue_notices.pl +++ a/misc/cronjobs/overdue_notices.pl @@ -479,7 +479,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 $i = 0; @@ -507,9 +512,10 @@ END_SQL } } ); - - 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 .= "