Skip to content
Snippets Groups Projects
Commit 4114eb0e authored by Larisse Amorim's avatar Larisse Amorim Committed by Liam Morland
Browse files

Issue #3380283 by larisse: Handle undefined array key in...

Issue #3380283 by larisse: Handle undefined array key in webform_validation_webform_element_configuration_form_alter()
parent 8e0f403b
Branches
Tags
No related merge requests found
......@@ -56,7 +56,7 @@ function webform_validation_webform_element_configuration_form_alter(array &$for
// The title of the current element. This is used to remove the current
// element from the list of elements to validate relative to. This ought
// to be done using the element key, but that is not available.
$this_element_title = ($customProperties['admin_title'] ?? NULL) ?: $customProperties['title'];
$this_element_title = ($customProperties['admin_title'] ?? NULL) ?: ($customProperties['title'] ?? NULL);
// Array of all elements in the form.
$elements = $webform->getElementsInitializedAndFlattened();
foreach ($elements as $elementKey => $element) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment