Commit 38f8954b authored by lkmorlan's avatar lkmorlan Committed by Jelle Sebreghts
Browse files

Issue #1923852 by Liam Morland: Fixed Notice: Undefined index:...

Issue #1923852 by Liam Morland: Fixed Notice: Undefined index: captcha_widgets() in clientside_validation_webform_after_build_recurse().
parent 3a511285
......@@ -123,7 +123,9 @@ function clientside_validation_webform_after_build_recurse($form_id, &$form, &$f
if ($settings['validate_options']['captcha']) {
$title = _clientside_validation_set_title(isset($element['captcha_widgets']['captcha_response']['#title']) ? $element['captcha_widgets']['captcha_response']['#title'] : $element['#name']);
$message = t('Wrong answer for !title', array('!title' => $title));
_clientside_validation_set_captcha($element['captcha_widgets']['captcha_response']['#name'], $title, $element['#captcha_validate'], $js_rules, $message);
if (isset($element['captcha_widgets'])) {
_clientside_validation_set_captcha($element['captcha_widgets']['captcha_response']['#name'], $title, $element['#captcha_validate'], $js_rules, $message);
}
}
}
clientside_validation_webform_after_build_recurse($form_id, $element, $form_state, $js_rules);
......@@ -418,4 +420,4 @@ function clientside_validation_webform_form_webform_component_edit_form_alter(&$
function clientside_validation_webform_webform_component_edit_form_submit($form, &$form_state) {
// Move setting to extra so it gets saved.
$form_state['values']['extra']['exclude_cv'] = $form_state['values']['validation']['exclude_cv'];
}
\ No newline at end of file
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment