PDA

View Full Version : [FIXED] form.getValues() crashes if inner content has been modified



olouvignes
16 Oct 2011, 9:51 AM
Hey team, here is the crash log :

* Uncaught TypeError: Object [object Object] has no method 'getChecked'
* in all-debug-w-comments l.64619

Is there something to do before calling getValues() to refresh the current form status ?

(I'm adding some textfields to an inner fieldset, but i guess it does not matter).

olouvignes
17 Oct 2011, 3:55 AM
Looks like it only crashes when several textfields have the same name.

So it's easily avoidable, but still needs a fix i guess.

rdougan
2 Nov 2011, 4:58 PM
Good find. Fixed for the next release.

pjennings
4 Nov 2011, 9:38 AM
Good find. Fixed for the next release.

Any chance you could post the fix or a workaround?

rdougan
4 Nov 2011, 10:00 AM
I actually had to refactor form panel quite a bit due to multiple bugs with getValues/setValues and some fields not returning the correct values. You'll have to wait for the next release I'm afraid. Sorry about that.