digideskio / zotonic

Automatically exported from code.google.com/p/zotonic
0 stars 0 forks source link

validator "postback" fails on render when delegate="..." parameter is set #122

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
1. Create a postback-validator according doc 
http://zotonic.com/documentation/798/postback or just add following line in any 
template:
{% validate id="username" type={postback delegate="mod_useradmin"} %}

2. Try to open page in browser

Expected result:
Page will be rendered.

Real result:
HTTP 500 error and
=ERROR REPORT==== 8-Nov-2010::11:41:55 ===
webmachine error: path="/home"
{error,{error,badarg,
              [{erlang,apply,["mod_useradmin",render_validator,[]]},
               {z_render,'-render_validator/4-fun-0-',5},
               {z_render,render_validator,4},
               {z_script,'-get_script1/1-fun-2-',2},
               {lists,foldl,3},
               {z_script,get_script1,1},
               {z_context,render_script,2},
               {z_context,output1,3}]}}

Zotonic version: today hg

Original issue reported on code.google.com by hellla...@gmail.com on 8 Nov 2010 at 9:06

GoogleCodeExporter commented 8 years ago
This issue was closed by revision f585e678c3.

Original comment by ma...@pobox.com on 8 Nov 2010 at 11:59

GoogleCodeExporter commented 8 years ago

Original comment by ma...@pobox.com on 8 Nov 2010 at 12:00