If the field is set to be required - core is adding default empty text - Select -
This throws an error if the CSHS widget is selected as the code access the options as array and the above option comes as translatable markup object.
The website encountered an unexpected error. Please try again later.
Error: Cannot use object of type Drupal\Core\StringTranslation\TranslatableMarkup as array in cshs_form_select_options() (line 91 of modules/contrib/cshs/cshs.module).
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | array_cond_check_2994252.patch | 2.25 KB | rakshith.thotada |
| cshs_error.png | 679.42 KB | rakshith.thotada |
Comments
Comment #2
rakshith.thotada commentedThe patch will check for array condition before accessing the properties.
Comment #3
rakshith.thotada commentedComment #4
gaëlgI had the same problem and the patch fixed it. Thank you!
Comment #5
br0ken