Variable declarations in inline actions not allowed
Typechecker forbids variable declarations in inline actions
Submitted by Eelco Visser on 11 March 2010 at 15:48
- user/init.app:24/37: error: This element is not allowed to be nested in other template elements:
var groups : Set := {administratorsGroup} ;par{ label(“Email” ){ input(email) } }
action(“Create”, action{
var groups : Set := {administratorsGroup};
var user := createUser(username, fullname, email, password1, groups);
user.password := password1.digest();
log(“created administrator”);
administratorsGroup.members.add(user);
return root();
})
Issue Log
On 12 March 2010 at 10:17 Danny Groenewegen commented:
fixed in revision 3724
Log in to post comments