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

(-)a/Koha/Account/Line.pm (-1 / +3 lines)
Lines 30-35 use Koha::Exceptions::Account; Link Here
30
use Koha::Patron::Debarments;
30
use Koha::Patron::Debarments;
31
use Koha::Notice::Templates;
31
use Koha::Notice::Templates;
32
use C4::Letters;
32
use C4::Letters;
33
use C4::Scrubber;
33
34
34
use base qw(Koha::Object Koha::Object::Mixin::AdditionalFields);
35
use base qw(Koha::Object Koha::Object::Mixin::AdditionalFields);
35
36
Lines 1134-1140 sub store { Link Here
1134
                );
1135
                );
1135
1136
1136
                if ( $letter && $letter->{content} ) {
1137
                if ( $letter && $letter->{content} ) {
1137
                    $self->description( $letter->{content} );
1138
                    my $scrubber = C4::Scrubber->new('note');
1139
                    $self->description( $scrubber->scrub( $letter->{content} ) );
1138
                }
1140
                }
1139
            }
1141
            }
1140
        }
1142
        }
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt (-4 / +9 lines)
Lines 111-119 Link Here
111
                            <td>[% PROCESS account_type_description account=account %]</td>
111
                            <td>[% PROCESS account_type_description account=account %]</td>
112
                            <td>
112
                            <td>
113
                                [%- IF account.payment_type %][% AuthorisedValues.GetByCode('PAYMENT_TYPE', account.payment_type) | html %][% END %]
113
                                [%- IF account.payment_type %][% AuthorisedValues.GetByCode('PAYMENT_TYPE', account.payment_type) | html %][% END %]
114
                                [%- IF account.description %][% account.description | html %][% END %]
114
                                [%- IF account.description %]
115
                                &nbsp;[% IF ( account.itemnumber ) %]
115
                                    [% # Passing the raw filter here because this content is scrubbed %]
116
                                    <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% account.item.biblionumber | uri %]&amp;itemnumber=[% account.itemnumber | uri %]">[% account.item.biblio.title | html %]</a>
116
                                    [% account.description | $raw %]
117
                                [% END %]
118
                                [% IF ( account.itemnumber ) %]
119
                                    <span class="title">
120
                                        &nbsp;
121
                                        <a href="/cgi-bin/koha/catalogue/moredetail.pl?biblionumber=[% account.item.biblionumber | uri %]&amp;itemnumber=[% account.itemnumber | uri %]">[% account.item.biblio.title | html %]</a>
122
                                    </span>
117
                                [% END %]</td
123
                                [% END %]</td
118
                            >
124
                            >
119
                            <td
125
                            <td
120
- 

Return to bug 40255