[Koha-bugs] [Bug 36297] New: Avoid using var named "t" in templates
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Tue Mar 12 10:19:19 CET 2024
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36297
Bug ID: 36297
Summary: Avoid using var named "t" in templates
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P5 - low
Component: Templates
Assignee: oleonard at myacpl.org
Reporter: fridolin.somers at biblibre.com
QA Contact: testopia at bugs.koha-community.org
Issue in templates discovered in Bug 36158
Avoid using var named "t" in templates (in FOREACH) because of conflict with
t() for translations.
> git grep 'FOREACH t IN'
origin/master:koha-tmpl/intranet-tmpl/prog/en/modules/admin/auth_subfields_structure.tt:
[%- FOREACH t IN [ '0', '1', '2', '3', '4', '5',
'6', '7', '8', '9', '10'] -%]
origin/master:koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc_subfields_structure.tt:
[%- FOREACH t IN [
'0', '1', '2', '3', '4', '5', '6', '7', '8', '9'] -%]
origin/master:koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt:
[% FOREACH t IN item_templates.owned %]
origin/master:koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt:
[% FOREACH t IN item_templates.shared %]
origin/master:koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt:
[% FOREACH t IN item_templates.owned %]
origin/master:koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt:
[% FOREACH t IN item_templates.shared %]
origin/master:koha-tmpl/intranet-tmpl/prog/en/modules/clubs/clubs.tt:
[% FOREACH t IN club_templates %]
origin/master:koha-tmpl/intranet-tmpl/prog/en/modules/clubs/clubs.tt:
[% FOREACH t IN club_templates %]
origin/master:koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course.tt:
[% FOREACH t IN terms %]
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list