Problem/Motivation

The schema for the radiocheckbox component requires that the name be a string. However the core FAPI allows form arrays with numeric indices, as might be done when generating forms dynamically. The type of the name may therefore by an integer.

Proposed resolution

Broaden the name in the schema to allow integers.

Issue fork radix-3611244

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

danchadwick created an issue. See original summary.

doxigo made their first commit to this issue’s fork.

  • doxigo committed e737b8ae on 6.0.x
    Issue #3611244 by danchadwick: Allow integer for the form element name...
doxigo’s picture

Status: Active » Fixed

Thanks Dan, committed with your credits to 6.0.x with one addition: radix:form-element has the same bug and covers every textfield, select and textarea, so it needed integer too. Closing the MR since the fix went in wider.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.