From 29decd9d6cf67e216776d3c9258ade98d7237ac0 Mon Sep 17 00:00:00 2001 From: Jan Kissig Date: Tue, 18 Nov 2025 13:39:26 +0000 Subject: [PATCH] Bug 40836: (QA follow-up) Reduce params Reduce params given to process method. --- .../opac-tmpl/bootstrap/en/includes/accounts.inc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/accounts.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/accounts.inc index bb345101f1b..66851f8a0c6 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/accounts.inc +++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/accounts.inc @@ -1,16 +1,16 @@ [%- BLOCK account_type_description -%] [%- IF account.credit_type_code -%] - [%- PROCESS credit_type_description credit_type_code = account.credit_type_code account=account -%] + [%- PROCESS credit_type_description account=account -%] [%- ELSIF account.debit_type_code -%] - [%- PROCESS debit_type_description debit_type_code = account.debit_type_code account=account -%] + [%- PROCESS debit_type_description account=account -%] [%- END -%] [%- PROCESS account_status_description account=account -%] [%- END -%] [%- BLOCK debit_type_description -%] - [%- SWITCH debit_type_code -%] + [%- SWITCH account.debit_type_code -%] [%- CASE 'ACCOUNT' -%] Account creation fee @@ -49,14 +49,14 @@ >[%- IF account && account.debit_type && account.debit_type.description -%] [% account.debit_type.description | html %] [%- ELSE -%] - [% debit_type_code | html %] + [% account.debit_type_code | html %] [%- END -%] [%- END -%] [%- END -%] [%- BLOCK credit_type_description -%] - [%- SWITCH credit_type_code -%] + [%- SWITCH account.credit_type_code -%] [%- CASE 'CANCELLATION' -%] Cancelled charge @@ -85,7 +85,7 @@ >[%- IF account && account.credit_type && account.credit_type.description -%] [% account.credit_type.description | html %] [%- ELSE -%] - [% credit_type_code | html %] + [% account.credit_type_code | html %] [%- END -%] [%- END -%] -- 2.39.5