Currently the second check in Form::checkFormFieldNameIsValid will never be true, because it checks the name against the array content of $this->arrFormFields (which is the widget data) rather than the array keys, which are the actual form field names. So when doing
Currently the second check in
Form::checkFormFieldNameIsValid
will never be true, because it checks the name against the array content of$this->arrFormFields
(which is the widget data) rather than the array keys, which are the actual form field names. So when doingthe latter simply overwrites the former without any error.