Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
webform
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
webform
Commits
7f67d2cd
Commit
7f67d2cd
authored
10 months ago
by
jrockowitz
Committed by
Jacob Rockowitz
10 months ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3401824
: Unable to render elements
parent
49eacf68
No related branches found
No related tags found
2 merge requests
!445
Issue #3401824: Unable to render elements
,
!138
Issue #3257570: Ensure that submission are deleted when a webform is deleted
Pipeline
#140122
canceled
10 months ago
Stage: build
Stage: validate
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/webform_options_limit/src/Plugin/WebformHandler/OptionsLimitWebformHandler.php
+4
-0
4 additions, 0 deletions
.../src/Plugin/WebformHandler/OptionsLimitWebformHandler.php
with
4 additions
and
0 deletions
modules/webform_options_limit/src/Plugin/WebformHandler/OptionsLimitWebformHandler.php
+
4
−
0
View file @
7f67d2cd
...
...
@@ -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
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment