We have found that if you have a textfield within a fieldset and the default value is something like:
sometext[1]
When the form is rendered, line 2864:
this.value = applyArrayPath(this.value, this.arrayPath);
changes the value in the textfield to:
sometext[0]
This is clearly a bug. I don't see any reason why jsonform should be altering the values in fields.
The comment above that line is:
// Note applying the array path probably doesn't make any sense,
// but some geek might want to have a label "foo[].bar[].baz",
// with the [] replaced by the appropriate array path.
Which doesn't make much sense, he references changing the label but its actually changing the field value. It also only seems to be there for some odd edge-case.
As this is a bug that is hampering our project, should i submit a patch to remove the line I mentioned above? It seems to be a clear bug