Commit a4494f68 authored by Jelle Sebreghts's avatar Jelle Sebreghts
Browse files

Issue #1793336 by qasimzee: Fixed Hidden fields are not being validated.

parent 09d82c37
......@@ -423,10 +423,10 @@ function _clientside_validation_add_general_settings(&$settings, $form) {
$include_hidden_setting = $definedsettings['include_hidden']['include_hidden'];
$include_hidden = preg_split('/(\r\n?|\n)/', $include_hidden_setting, -1, PREG_SPLIT_NO_EMPTY);
if (in_array($form['#form_id'], $include_hidden)) {
$setting['clientsideValidation']['forms'][$form_id]['includeHidden'] = TRUE;
$settings['clientsideValidation']['forms'][$form_id]['includeHidden'] = TRUE;
}
elseif ($definedsettings['include_hidden']['include_hidden']) {
$setting['clientsideValidation']['forms'][$form_id]['includeHidden'] = TRUE;
$settings['clientsideValidation']['forms'][$form_id]['includeHidden'] = TRUE;
}
$settings['clientsideValidation']['forms'][$form_id]['errorPlacement'] = $definedsettings['error_placement']['error_placement_default'];
......
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