Skip to content
Snippets Groups Projects
Commit 8b9738b0 authored by Jeroen Bobbeldijk's avatar Jeroen Bobbeldijk
Browse files

Fix for #2210067, correctly validate required fields

parent 81a9f5a5
No related branches found
Tags 7.x-1.0-alpha3
No related merge requests found
......@@ -1388,7 +1388,6 @@ function _paragraphs_collect_required_elements(&$element, &$required_elements) {
}
}
if (!empty($element['#required'])) {
$element['#required'] = FALSE;
$required_elements[] = &$element;
$element += array('#pre_render' => array());
array_unshift($element['#pre_render'], 'paragraphs_field_widget_render_required');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment