Forum OpenACS Q&A: Re: template::form::set_values not working?!

Collapse
Posted by Jade Rubick on
I'd suggest posting it as a bug, with a suggested fix if you can. I just posted a documentation bug last week, and someone actually put it in (I was surprised and happy :)
Collapse
Posted by tammy m on

Good advice Jade:)

I figured out this was basically the problem:
template::form::set_values does not set values in the FORM from the array reference passed to it. This is because the upvar is not referencing the correct level. Also, once this is fixed and values are being set from the array to the FORM, if a value exists in the array that is not in the FORM, an undocumented/unexpected error is thrown.

And submitted a bug report.