From 6d6114d1ec2dd96c25e4cb8b9555e60fbf0ab384 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Wed, 9 Feb 2022 14:36:24 +0000 Subject: [PATCH] Bug 23681: (QA follow-up) Allow for translations This patch allows for existing translations to follow through if debarment type descriptions are left unaltered for the default types. Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi --- .../prog/en/includes/borrower_debarments.inc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/borrower_debarments.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/borrower_debarments.inc index 126979c74b..ebf9f0d538 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/borrower_debarments.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/borrower_debarments.inc @@ -21,7 +21,14 @@ [% dtype = d.type %] - [% restriction_types.$dtype.display_text | html %] + [% ddisplay = restriction_types.$dtype.display_text %] + [% SWITCH ddisplay %] + [% CASE 'Manual' %]Manual + [% CASE 'Overdues' %]Overdues + [% CASE 'Suspension' %]Suspension + [% CASE 'Discharge' %]Discharge + [% CASE %][% ddisplay | html %] + [% END %] [% IF d.comment.search('OVERDUES_PROCESS') %] -- 2.39.5