- πΊπΈUnited States kevin.dutra
Safety check to make sure array item exists before trying to operate on it. Also adjusted to single quoted string literals, for consistency.
When a default value was set as a comma delimited string in the drupal settings, observe that selected UI values in the node edit preview are incorrectly set because they are being truncated. This is because SHS normally operates on an array of integers rather than a string.
Additionally, if a constraint validator is operating on the edit form this can result in a validation message that doesn't make sense.
Modify code in OptionsShsWidget so that if a default value was set as a comma delimited string in the drupal settings it is converted into an array of integers and the value is set correctly.
Active
2.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Safety check to make sure array item exists before trying to operate on it. Also adjusted to single quoted string literals, for consistency.