Commit 6b80d55a authored by Gerhard Killesreiter's avatar Gerhard Killesreiter
Browse files

#58536, A #required element always needs validation, patch by chx

fixes checkboxes, radios, and selects.
parent ab9f9532
......@@ -366,7 +366,7 @@ function form_builder($form_id, $form) {
}
}
// Mark all posted values for validation
if (isset($form['#value']) && $form['#value'] === $edit) {
if ((isset($form['#value']) && $form['#value'] === $edit) || (isset($form['#required']) && $form['#required'])) {
$form['#needs_validation'] = TRUE;
}
}
......
Markdown is supported
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