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.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | migrate_conditions-select-3269530-4.patch | 1.11 KB | danflanagan8 |
Issue fork migrate_override-3269530
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
Comment #3
dieterholvoet commentedComment #4
danflanagan8I 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#typekey 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.
Comment #6
mikelutzComment #8
mikelutzI'm going with Dan's approach here, I think it's cleaner. Committed and pushed to the 2.0.x branch. Thanks!