Problem/Motivation

The 'Check boxes/radio buttons' widget has the #type key in the root of the $elements array, which is not supported at this moment.

Steps to reproduce

Add an entity reference field with the 'Check boxes/radio buttons' widget and lock it.

Proposed resolution

Disable the root. This might add support for other widgets as well.

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

DieterHolvoet created an issue. See original summary.

dieterholvoet’s picture

Status: Active » Needs review
danflanagan8’s picture

StatusFileSize
new1.11 KB

I ran into this as well. I have a slightly different fix in this patch. I check for Element::children($elements) being empty instead of checking for the #type key being set.

I'm posting it because I want to use it on a project. I think either the MR or this patch would work.

Status: Needs review » Needs work

The last submitted patch, 4: migrate_conditions-select-3269530-4.patch, failed testing. View results

mikelutz’s picture

Version: 8.x-1.x-dev » 2.0.x-dev
Status: Needs work » Needs review

mikelutz’s picture

Status: Needs review » Fixed

I'm going with Dan's approach here, I think it's cleaner. Committed and pushed to the 2.0.x branch. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.