From de2f44173addf026011d72f33a80283f9fc0ad37 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Fri, 15 Sep 2023 09:01:06 +0000 Subject: [PATCH] Bug 16223: (QA follow-up) Add filter, remove superfluous condition Signed-off-by: Marcel de Rooy Signed-off-by: Tomas Cohen Arazi --- admin/restrictions.pl | 2 +- koha-tmpl/intranet-tmpl/prog/en/modules/admin/restrictions.tt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/admin/restrictions.pl b/admin/restrictions.pl index a1a0bc1bdfe..48313316990 100755 --- a/admin/restrictions.pl +++ b/admin/restrictions.pl @@ -66,7 +66,7 @@ if ( $op eq 'add_form') { display_text => $display_text, } ); - if ($dupe->count && $dupe->unblessed->{code} ne $code) { + if ( $dupe->count ) { push @messages, { type => 'error', code => 'duplicate_display_text' }; diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/restrictions.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/restrictions.tt index 93cf49f5e44..ff3ee00fab7 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/restrictions.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/restrictions.tt @@ -214,7 +214,7 @@ [% IF restriction.lift_after_payment %]Yes[% END %] - [% IF restriction.fee_limit %][% restriction.fee_limit %][% END %] + [% IF restriction.fee_limit %][% restriction.fee_limit | html %][% END %] Edit -- 2.42.0