Skip to content

Checkbox field with the name of "statuses" does not render correctly #2759

Description

@litzinger

Description of the problem
I'm trying to add a "Statuses" field to an add-on, and it seems there is some native code styling a <fieldset id="fieldset-statuses"...> element different than a normal checkbox field, which is fine, except it does not render well. If I rename the field it renders the checkboxes as expected, but I would like to actually use the name "statuses" as it's a consistent with the naming scheme of other settings on this page (e.g. "tags", "items") .

How To Reproduce
In an add-on I'm creating a checkbox field with the name of "statuses" with this configuration

[
                    'title'  => 'speedy_clearing_statuses',
                    'desc'   => 'speedy_clearing_statuses_desc',
                    'fields' => [
                        'statuses' => [
                            'type'     => 'checkbox',
                            'choices'  => $statuses,
                            'value'    => $settings->statuses,
                        ],
                    ],
                ]

Screenshots

Screenshot 2023-01-16 at 1 48 26 PM

Environment Details:

  • Version: EE 7.2.6
  • Browser: Safari

There is a whole set of styles for this since it's named "statuses" - I'm not sure where else in EE this is used. I'm fine if it renders different... but it should render well.

Screenshot 2023-01-16 at 1 56 03 PM

Screenshot 2023-01-16 at 1 55 57 PM

Screenshot 2023-01-16 at 1 55 40 PM

Metadata

Metadata

Assignees

Labels

Bug: AcceptedBug has been confirmed, is reproducible, and ready to work on.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions