Description

This form also has a subform named subform. Latter uses array notation. (Note: using the method setIsArray(true) will not affect the issue!)

In this subform I have an element named id too. It is a MultiCheckbox. The options include the keys 1 and 2 (NOT 3!).

Actions: - Get the id element from the base form test. Set its value to 3. - Don't choose any option on the id element in the subform subform. - Submit Form.

Expected behaviours: - The id element from the base form test is set to 3. - The id element from the subform subform is validated true. - Form is valid!

Actual behaviour: - The id element from the base form test is set to 3. - The id element from the subform subform is ALSO SET TO 3. Since this option does not exist

it validates false. - Form is invalid!

Debugging:

The id element from the base form test: The dump on the element on line 46 shows the correct element. The other id element is never shown. Since the value is set correctely everything seems to work fine here.

Form values: Dumping the form values in line 58 shows that the setValue(3) Method has also addresses the value to the wrong id element in the subform.

Conclusion: There seems to be a problem with the set methods on elements in a subform that share the same name as in the base form or maybe even other subforms.

Further problematics: If the original id element was set to a value that IS AN OPTION of the MultiCheckbox the form would have been valid - even if NO OPTION was checked.

Note: Checking an option will override the value 3 and the form will be correct.