When trying to add an option limit with the webform_options_limit module for a field that contains options containing a dot, the limit can not be saved.
ConfigValueException: ***** key contains a dot which is not supported. in Drupal\Core\Config\ConfigBase->validateKeys()
The form then shows a bunch of noticed in the frontend as well:
Notice: A non well formed numeric value encountered in Drupal\webform_options_limit\Plugin\WebformHandler\OptionsLimitWebformHandler->disableOptionsElement() (line 709 of modules/contrib/webform/modules/webform_options_limit/src/Plugin/WebformHandler/OptionsLimitWebformHandler.php).
Warning: Illegal string offset '9.00 - 12.00' in Drupal\webform_options_limit\Plugin\WebformHandler\OptionsLimitWebformHandler->disableOptionsElement() (line 709 of modules/contrib/webform/modules/webform_options_limit/src/Plugin/WebformHandler/OptionsLimitWebformHandler.php).
Notice: Array to string conversion in Drupal\webform_options_limit\Plugin\WebformHandler\OptionsLimitWebformHandler->disableOptionsElement() (line 709 of modules/contrib/webform/modules/webform_options_limit/src/Plugin/WebformHandler/OptionsLimitWebformHandler.php).
Warning: Invalid argument supplied for foreach() in Drupal\webform\Plugin\WebformElement\OptionsBase::processOptionsProperties() (line 264 of modules/contrib/webform/src/Plugin/WebformElement/OptionsBase.php).
I saw a similar issue with a fix in #2875371: Can't Add Email Handler w/Select "Send To" β , maybe we can do something like that?
-
-
-
Needs review
6.2
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.