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: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
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.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/