xslate / p5-Text-Xslate

Scalable template engine for Perl5
https://metacpan.org/release/Text-Xslate
Other
121 stars 47 forks source link

returning incorrect value for function call on HTML::FormHandler form #166

Open srchulo opened 8 years ago

srchulo commented 8 years ago

I've detailed the bug here:

https://stackoverflow.com/questions/38193910/textxslate-returning-incorrect-value-for-function-call

Basically, the error_fields method is returning a 1 instead of an array. I've seen this with some other functions such as 'errors'. When running the same code with Template Toolkit or Template Alloy, the code works as expected.

syohex commented 8 years ago

Sorry late reply. Value after IN must be arrayref. I suppose you specify list(not array) and last element is used. Please save into variable as arrayref and reference it.