Closed (fixed)
Project:
Field States UI
Version:
3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Nov 2018 at 09:08 UTC
Updated:
30 May 2023 at 06:09 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
srijeeta commentedI had the same issue. Updating the module to 8.x-2.0-dev solves the issue.
Comment #3
publishing future commentedProblem is still there with 8.x-2.0-dev. Here are the details:
- Field type: "isbn" was unrecognized - array ( 0 => 'value', )
- Field type: "file" was unrecognized - details: array ( 0 => '#title', 1 => '#description', 2 => '#field_parents', 3 => '#required', 4 => '#delta', 5 => '#weight', 6 => '#type', 7 => '#upload_location', 8 => '#upload_validators', 9 => '#value_callback', 10 => '#process', 11 => '#progress_indicator', 12 => '#extended', 13 => '#field_name', 14 => '#entity_type', 15 => '#display_field', 16 => '#display_default', 17 => '#description_field', 18 => '#cardinality', 19 => '#default_value', 20 => '#multiple', )
- #field_parents key not found - details: array ( 0 => 'value', )
Comment #4
m.bdour commentedI used the attached patch on version: '8.x-2.0' which still has the problem for file and image fields.
Comment #5
gmercer commentedWe found an issue to the previous patch where it didn't match up with what the default switch was doing as it is missing a line for
$container = TRUE;
This cause the field to be wrapped differently - without an 'element'. And as such, caused an issue in code we had which was trying to check the value with:
if (empty($values['field_image_single_public']['element']['fids'])) { ...
I'll be attaching an updated patch.
Comment #6
gmercer commentedComment #7
nickdickinsonwildesplitting this to just the core fields in this ticket
Comment #9
nickdickinsonwilde