Skip to content
Snippets Groups Projects
Commit 7f67d2cd authored by jrockowitz's avatar jrockowitz Committed by Jacob Rockowitz
Browse files

Issue #3401824: Unable to render elements

parent 49eacf68
No related branches found
No related tags found
2 merge requests!445Issue #3401824: Unable to render elements,!138Issue #3257570: Ensure that submission are deleted when a webform is deleted
Pipeline #140122 canceled
......@@ -1255,6 +1255,10 @@ class OptionsLimitWebformHandler extends WebformHandlerBase implements WebformOp
protected function getOptionsReached(array $limits) {
$element_key = $this->configuration['element_key'];
$webform_submission = $this->getWebformSubmission();
if (!$webform_submission) {
return [];
}
$element_values = (array) $webform_submission->getElementOriginalData($element_key) ?: [];
$reached = [];
foreach ($limits as $option_value => $limit) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment