- Issue created by @n3uronick
- 🇵🇹Portugal joaomarques736
Hello n3uronick,
Thank you for your patch. It is already applied in new version of this module: 1.0.7.
Best regards.
- Status changed to Fixed
over 1 year ago 4:42pm 17 March 2023
When response contains only empty json array this results in an:
Notice: Undefined offset: 0 in Drupal\webform_remote_select\Plugin\WebformElement\WebformRemoteSelectElement->executeRequest() (line 303 of /var/www/html/web/modules/contrib/webform_remote_select/src/Plugin/WebformElement/WebformRemoteSelectElement.php)
Configure Webform Remote Select to access an endpoint returning json like this: []
Provide additional check for an empty json array.
Fixed
1.0
Code
Hello n3uronick,
Thank you for your patch. It is already applied in new version of this module: 1.0.7.
Best regards.