the $element array comes in differently to the field_states_ui_field_widget_alter function in core 8.6 than it did in 8.5 causing a wsod with "Recoverable fatal error: Argument 6 passed to field_states_ui_get_states() must be of the type array, null given, called in ...field_states_ui/field_states_ui.form.inc"
The attached patch should cover all entity reference cases (or at least the ones I've found). Patch attached.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | er_issues_in_core86-4.patch | 3.3 KB | el1_1el |
| #2 | er_issues_in_core8-2.patch | 2.07 KB | el1_1el |
| er_issues_in_core86.patch | 1.99 KB | el1_1el |
Comments
Comment #2
el1_1el commentedI needed to move
for ALL elements. I believe this is an incompatibility when using field_states_ui with paragraphs, but dont have time for a proper debug. This part of the patch may need to be a separate issue, so hopefully others have suggestions as well.
Comment #3
el1_1el commentedComment #4
el1_1el commentedAnd now an error with link fields also
Comment #5
el1_1el commentedI elected to restructure my data model after getting a variety of odd errors.
Comment #6
nickdickinsonwilde$element/$element[0] are I believe resolved in 8.x-2.x.
Can't replicate link error, added paragraph to supported fields.