Skip Menu |
 

This queue is for tickets about the Template-Plugin-Lingua-EN-Inflect CPAN distribution.

Report information
The Basics
Id: 61005
Status: new
Priority: 0/
Queue: Template-Plugin-Lingua-EN-Inflect

People
Owner: Nobody in particular
Requestors: nigel [...] mcnie.name
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.02
Fixed in: (no value)



Subject: use of filter inflect(number=>[something equalling 0]) is broken
Download (untitled) / with headers
text/plain 524b
If you have a variable with some number in it which can sometimes be 0, this module can exhibit very strange caching behaviour. e.g.: [% FILTER inflect(number => ponies) %]NO(ponies)[% END %] If you render the template once with ponies = 4, it shows the right thing. But if you render it again with ponies = 0, you'll see something else (normally 4). The problem is in tt_inflect: Lingua::EN::Inflect::NUM($number) if $number; Which should probably be: Lingua::EN::Inflect::NUM($number) if defined $number;


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.