Bug 16223: (QA follow-up) Add filter, remove superfluous condition

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Marcel de Rooy 2023-09-15 09:01:06 +00:00 committed by Tomas Cohen Arazi
parent 8d2bb62d3c
commit ad29aae5c3
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F
2 changed files with 2 additions and 2 deletions

View file

@ -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'
};

View file

@ -214,7 +214,7 @@
[% IF restriction.lift_after_payment %]Yes[% END %]
</td>
<td>
[% IF restriction.fee_limit %][% restriction.fee_limit %][% END %]
[% IF restriction.fee_limit %][% restriction.fee_limit | html %][% END %]
</td>
<td class="actions">
<a class="btn btn-default btn-xs" href="/cgi-bin/koha/admin/restrictions.pl?op=add_form&amp;code=[% restriction.code | uri %]"><i class="fa-solid fa-pencil" aria-hidden="true"></i> Edit</a>