racke / Template-Flute

Template::Flute - Modern designer-friendly HTML templating Engine
Other
11 stars 12 forks source link

Filter::Currency returns undef for undef amount #78

Closed SysPete closed 9 years ago

SysPete commented 9 years ago

Otherwise it calls format_price which barfs on undef arg. Should be able to cope with undefined arguments.

racke commented 9 years ago

In general there is something wrong when you have a "undef" price. So I would prefer to let it crash.

SysPete commented 9 years ago

For now I'm using a local filter in IC6 demo shop to handle this and will create a new issue to flag this for the future.