Browse Source

Bug 29602: (follow-up) fix TemplateToolkit.t

Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
22.05.x
Fridolin Somers 2 years ago
parent
commit
f55b16145c
  1. 2
      koha-tmpl/intranet-tmpl/prog/en/includes/accounts.inc
  2. 2
      t/db_dependent/Letters/TemplateToolkit.t

2
koha-tmpl/intranet-tmpl/prog/en/includes/accounts.inc

@ -1,12 +1,10 @@
[%- BLOCK account_type_description -%]
<span>
[%- IF account.credit_type_code -%]
[%- PROCESS credit_type_description credit_type = account.credit_type -%]
[%- ELSIF account.debit_type_code -%]
[%- PROCESS debit_type_description debit_type = account.debit_type -%]
[%- END -%]
[%- PROCESS account_status_description account=account -%]
</span>
[%- END -%]
[%- BLOCK debit_type_description -%]

2
t/db_dependent/Letters/TemplateToolkit.t

@ -1122,7 +1122,7 @@ EOF
credits => $account->accountlines_id
}
);
is($letter->{content},' <span>Payment<span> (Cancelled)</span> </span>', "Include used in notice");
is($letter->{content},'<span>Payment</span><span> (Cancelled)</span>', "Include used in notice");
};
subtest 'Dates formatting' => sub {

Loading…
Cancel
Save