From f55b16145c96167afc63784447cdb8420d49dbae Mon Sep 17 00:00:00 2001 From: Fridolin Somers Date: Wed, 20 Apr 2022 14:37:23 -1000 Subject: [PATCH] Bug 29602: (follow-up) fix TemplateToolkit.t Signed-off-by: Fridolin Somers --- koha-tmpl/intranet-tmpl/prog/en/includes/accounts.inc | 2 -- t/db_dependent/Letters/TemplateToolkit.t | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/accounts.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/accounts.inc index 6110f8af8b..6ba16c55d9 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/accounts.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/accounts.inc @@ -1,12 +1,10 @@ [%- BLOCK account_type_description -%] - [%- 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 -%] - [%- END -%] [%- BLOCK debit_type_description -%] diff --git a/t/db_dependent/Letters/TemplateToolkit.t b/t/db_dependent/Letters/TemplateToolkit.t index b69ebe118e..bf00e8ada0 100755 --- a/t/db_dependent/Letters/TemplateToolkit.t +++ b/t/db_dependent/Letters/TemplateToolkit.t @@ -1122,7 +1122,7 @@ EOF credits => $account->accountlines_id } ); - is($letter->{content},' Payment (Cancelled) ', "Include used in notice"); + is($letter->{content},'Payment (Cancelled)', "Include used in notice"); }; subtest 'Dates formatting' => sub { -- 2.39.5