Garlic.js icon indicating copy to clipboard operation
Garlic.js copied to clipboard

Garlicjs does not store field[] array properly

Open vip9 opened this issue 12 years ago • 3 comments

When form has several array fields (e.g. urls[]), garlicjs saves only one, and after next visit, it inputs that last typed field into all. It should store all fields, and fill the form.

vip9 avatar May 21 '13 20:05 vip9

Could you please make a jsbin or jsfiddle showing this behavior ?

Thanks

guillaumepotier avatar May 23 '13 10:05 guillaumepotier

Please review here: http://jsfiddle.net/SXHeZ/4/ and http://jsfiddle.net/SXHeZ/6/

The problem is with sourrounding "p" tags. Without it - garlicjs works (it adds .eq(1)...), with paragraphs - it does not.

vip9 avatar May 23 '13 11:05 vip9

Experienced this as well, solved the problem by adding numbers to the array field, so instead of billing[street][] I did billing[street][0] etc.

paales avatar Oct 06 '13 23:10 paales