Closed (fixed)
Project:
Webform
Version:
6.1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Dec 2021 at 12:39 UTC
Updated:
30 Dec 2021 at 22:34 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
lamp5Comment #3
jrockowitz commentedThe webforms property can contain multiple strings.
Comment #4
lamp5Hmm, intresting, I can see error when value is empty.
Comment #5
jrockowitz commentedI think we need to change the default value for webforms property from NULL to an empty array [].
Comment #6
jrockowitz commentedI think we need to the 'ignore' type.
Comment #7
lamp5"Ignore" type it is not correct in my opinion, it is good for password form element type for example. Change default property for empty array sounds better.
Comment #8
jrockowitz commentedSetting it to an empty array breaks the existing code.
@see \Drupal\webform\Plugin\Field\FieldWidget\WebformEntityReferenceWidgetTrait::settingsForm
Comment #9
jrockowitz commentedMoving and refactory the default settings, settings form, and settings summary out of the trait is the most reliable approach.
Comment #10
jrockowitz commented