Le 09/03/2012 12:44, Jonathan Druart a écrit :
This patch breaks the feature introduced by Bug 5347. In this patch, I have already make a refactoring of C4::Letters::SendAlerts
Could you give some details about what is broken ? I see the following changes: * sending mails, the utf8 encoding is removed: - Subject => Encode::encode( "utf8", "" . $innerletter->{title} ), - Message => Encode::encode( "utf8", "" . $innerletter->{content} ), * the order_infos stuff: + my @fields = map { + $sthorders->{mysql_table}[$_] . "." . $sthorders->{NAME}[$_] } + (0 .. $#{$sthorders->{NAME}} ) ; + + my @orders_infos; + while ( my $row = $sthorders->fetchrow_arrayref() ) { + my %rec = (); + @rec{@fields} = @$row; + push @orders_infos, \%rec; + } Is there more things ?
Commit id is b8e9829be5a59c84ba699fc015820cd4eb3fbc0a and is already pushed in Master.
-- Paul POULAIN http://www.biblibre.com Expert en Logiciels Libres pour l'info-doc Tel : (33) 4 91 81 35 08