From ad29aae5c3290f6be276a2a48a94d27f3fd80026 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 a1a0bc1bdf..4831331699 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 93cf49f5e4..ff3ee00fab 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.39.5