[Koha-bugs] [Bug 36297] Avoid using var named "t" in templates

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Mar 14 16:04:01 CET 2024


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36297

--- Comment #3 from Pedro Amorim <pedro.amorim at ptfs-europe.com> ---
(In reply to Kyle M Hall from comment #2)
> (In reply to Pedro Amorim from comment #1)
> > This may be a non-issue (?) if it is indeed a template toolkit bug and it
> > gets fixed upstream, the problem is that the value of 't' persists even
> > after the end of the loop.
> > Having said that, we may also just decide that using 't' as a variable name
> > (anywhere) in TT is bad practice, because it may conflict with the
> > translation method 't' we use.
> 
> I don't think we can count on this being fixed upstream any time soon. I
> think it's reasonable for use to fix the existing instances and perhaps add
> a unit test to grep for "FOREACH t IN" in all our templates.

+1

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list