Hi html-template-users,

I found some problem

I have object $associate (return by 
HTML::Template::Associate::FormValidator) with

'MISSING_FIELDS' => [
   {
     'FIELD_VALUE' => 1,
     'FIELD_NAME' => 'password2'
   },
   {
     'FIELD_VALUE' => 1,
     'FIELD_NAME' => 'login'
   },
   {
     'FIELD_VALUE' => 1,
     'FIELD_NAME' => 'password'
   }
],

in template

<!-- TMPL_IF NAME=MISSING_FIELDS -->
Some fields are missing
<!-- /TMPL_IF -->

load with

associate => [ $q, $associate ]

in logs:

HTML::Template::param() : attempt to set parameter 'missing_fields' with 
an array ref - parameter is not a TMPL_LOOP!

is it bug ?

if I add

<!-- TMPL_LOOP NAME=MISSING_FIELDS -->...

all ok


-- 
Sergey Borodich
http://bor.org.ua

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Html-template-users mailing list
Html-template-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/html-template-users

Reply via email to