View | Details | Raw Unified | Return to bug 28230
Collapse All | Expand All

(-)a/C4/Message.pm (-3 / +2 lines)
Lines 166-172 sub enqueue { Link Here
166
    my $body = join('', map { $format->($_) } @{$metadata->{body}});
166
    my $body = join('', map { $format->($_) } @{$metadata->{body}});
167
    $letter->{content} = $metadata->{header} . $body . $metadata->{footer};
167
    $letter->{content} = $metadata->{header} . $body . $metadata->{footer};
168
168
169
    $letter->{metadata} = Dump($metadata);
169
    $letter->{metadata} = Encode::decode_utf8(Dump($metadata));
170
    C4::Letters::EnqueueLetter({
170
    C4::Letters::EnqueueLetter({
171
        letter                 => $letter,
171
        letter                 => $letter,
172
        borrowernumber         => $borrower->{borrowernumber},
172
        borrowernumber         => $borrower->{borrowernumber},
Lines 279-285 sub metadata { Link Here
279
        $data->{header} ||= '';
279
        $data->{header} ||= '';
280
        $data->{body}   ||= [];
280
        $data->{body}   ||= [];
281
        $data->{footer} ||= '';
281
        $data->{footer} ||= '';
282
        $self->{metadata} = Dump($data);
282
        $self->{metadata} = Encode::decode_utf8(Dump($data));
283
        $self->content($self->render_metadata);
283
        $self->content($self->render_metadata);
284
        return $data;
284
        return $data;
285
    } else {
285
    } else {
286
- 

Return to bug 28230