Commit 7946eca1 authored by Dries's avatar Dries
Browse files

- Patch #35926 by asimmonds: make required vocabularies actually required.

parent 5d43619c
......@@ -533,6 +533,7 @@ function taxonomy_form_alter($form_id, &$form) {
else {
$form['taxonomy'][$vocabulary->vid] = taxonomy_form($vocabulary->vid, array_keys($terms), $help);
$form['taxonomy'][$vocabulary->vid]['#weight'] = $vocabulary->weight;
$form['taxonomy'][$vocabulary->vid]['#required'] = $vocabulary->required;
}
}
if (isset($form['taxonomy'])) {
......
......@@ -533,6 +533,7 @@ function taxonomy_form_alter($form_id, &$form) {
else {
$form['taxonomy'][$vocabulary->vid] = taxonomy_form($vocabulary->vid, array_keys($terms), $help);
$form['taxonomy'][$vocabulary->vid]['#weight'] = $vocabulary->weight;
$form['taxonomy'][$vocabulary->vid]['#required'] = $vocabulary->required;
}
}
if (isset($form['taxonomy'])) {
......
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