Bug 35701: Do not use t

To not interfer with the t from I18N

On bug 35329 we are using the I18N TT plugin that is providing the 't'
subroutine.

This loop is redefining the subroutine, therefore it is not longer
accessible.

Test plan:
Edit a patron and confirm the the "Title" dropdown still contain the
different values of syspref BorrowersTitles.

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Jonathan Druart 2024-01-04 16:24:26 +01:00 committed by Katrin Fischer
parent a7f914bf3b
commit 50904b219e
Signed by: kfischer
GPG key ID: 0EF6E2C03357A834

View file

@ -284,11 +284,11 @@ legend:hover {
Salutation: </label>
<select id="btitle" name="title">
<option value=""></option>
[% FOREACH t IN Koha.Preference('BorrowersTitles').split('\|') %]
[% IF btitle == t %]
<option value="[% t | html %]" selected="selected">[% t | html %]</option>
[% FOREACH patron_title IN Koha.Preference('BorrowersTitles').split('\|') %]
[% IF btitle == patron_title %]
<option value="[% patron_title | html %]" selected="selected">[% patron_title | html %]</option>
[% ELSE %]
<option value="[% t | html %]">[% t | html %]</option>
<option value="[% patron_title | html %]">[% t | html %]</option>
[% END %]
[% END %]
</select>