- Issue created by @pbosmans
Please provide the YAML of a minimal form that reproduces the bug.
- π¨π¦Canada karing π¨π¦
We are seeing this as well. This is a workaround (it will let you Save), but likely not a proper fix, so just posting here ->
--- ./modules/webform_options_limit/src/Plugin/WebformHandler/OptionsLimitWebformHandler.php.orig 2024-02-16 20:48:22.679187204 +0000 +++ ./modules/webform_options_limit/src/Plugin/WebformHandler/OptionsLimitWebformHandler.php 2024-02-16 20:50:50.135397165 +0000 @@ -1255,7 +1255,14 @@ protected function getOptionsReached(array $limits) { $element_key = $this->configuration['element_key']; $webform_submission = $this->getWebformSubmission(); - $element_values = (array) $webform_submission->getElementOriginalData($element_key) ?: []; + ### hack + ### https://www.drupal.org/project/webform/issues/3401824 + if (!empty($webform_submission)) { + $element_values = (array) $webform_submission->getElementOriginalData($element_key) ?: []; + } + else { + $element_values = []; + }
- First commit to issue fork.
- last update
8 months ago 536 pass - Status changed to Needs review
8 months ago 10:00am 6 April 2024 - πΊπΈUnited States jrockowitz Brooklyn, NY
Those are perfect steps, and the fix was very helpful.
- Status changed to RTBC
8 months ago 5:21pm 6 April 2024 - π¨π¦Canada karing π¨π¦
Thanks Jake! I've applied/reviewed the patch and confirmed it's solving the issue.
- last update
8 months ago 536 pass -
jrockowitz β
committed 7f67d2cd on 6.2.x
Issue #3401824: Unable to render elements
-
jrockowitz β
committed 7f67d2cd on 6.2.x
- Status changed to Fixed
8 months ago 12:56pm 7 April 2024 Automatically closed - issue fixed for 2 weeks with no activity.