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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt (-2 / +2 lines)
Lines 416-424 Link Here
416
                                                <input type="hidden" name="lang" value="[% lang | html %]" />
416
                                                <input type="hidden" name="lang" value="[% lang | html %]" />
417
                                                <label for="is_html_[% letter.message_transport_type | html %]_[% lang | html %]">HTML message:</label>
417
                                                <label for="is_html_[% letter.message_transport_type | html %]_[% lang | html %]">HTML message:</label>
418
                                                [% IF letter.is_html %]
418
                                                [% IF letter.is_html %]
419
                                                    <input type="checkbox" name="is_html_[% letter.message_transport_type | html %]" id="is_html_[% letter.message_transport_type | html %]_[% lang | html %]" value="1" checked="checked" />
419
                                                    <input type="checkbox" name="is_html_[% letter.message_transport_type | html %]_[% lang | html %]" id="is_html_[% letter.message_transport_type | html %]_[% lang | html %]" value="1" checked="checked" />
420
                                                [% ELSE %]
420
                                                [% ELSE %]
421
                                                    <input type="checkbox" name="is_html_[% letter.message_transport_type | html %]" id="is_html_[% letter.message_transport_type | html %]_[% lang | html %]" value="1" />
421
                                                    <input type="checkbox" name="is_html_[% letter.message_transport_type | html %]_[% lang | html %]" id="is_html_[% letter.message_transport_type | html %]_[% lang | html %]" value="1" />
422
                                                [% END %]
422
                                                [% END %]
423
                                            </li>
423
                                            </li>
424
                                            <li>
424
                                            <li>
(-)a/tools/letter.pl (-3 / +2 lines)
Lines 290-299 sub add_validate { Link Here
290
    my @content       = $input->multi_param('content');
290
    my @content       = $input->multi_param('content');
291
    my @lang          = $input->multi_param('lang');
291
    my @lang          = $input->multi_param('lang');
292
    for my $mtt ( @mtt ) {
292
    for my $mtt ( @mtt ) {
293
        my $is_html = $input->param("is_html_$mtt");
293
        my $lang = shift @lang;
294
        my $is_html = $input->param("is_html_$mtt\_$lang");
294
        my $title   = shift @title;
295
        my $title   = shift @title;
295
        my $content = shift @content;
296
        my $content = shift @content;
296
        my $lang = shift @lang;
297
        my $letter = C4::Letters::getletter( $oldmodule, $code, $branchcode, $mtt, $lang );
297
        my $letter = C4::Letters::getletter( $oldmodule, $code, $branchcode, $mtt, $lang );
298
298
299
        # getletter can return the default letter even if we pass a branchcode
299
        # getletter can return the default letter even if we pass a branchcode
300
- 

Return to bug 23762