Commit d6d5ec6b authored by KarenS's avatar KarenS

Issue #1081072 Imagefield validation does not use error_element, needs a tweak...

Issue #1081072 Imagefield validation does not use error_element, needs a tweak so that the empty required field gets highlighted correctly.
parent ca2757a9
......@@ -426,7 +426,9 @@ function content_multigroup_node_form_validate($form, &$form_state) {
$error_element = implode('][', $error_element);
}
else {
$error_element = '';
// Imagefield does not use error_element, sets error on the field.
// Are there others that need different treatment?
$error_element = $field_name;
}
$required_field_errors[$delta][$field_name] = array(
'element' => $error_element,
......
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