Skip to content
Snippets Groups Projects
Commit 6483dcde authored by Francesco Placella's avatar Francesco Placella
Browse files

Issue #3052413 by EmiliaC, catch: Forum vocabulary is overridden to required...

Issue #3052413 by EmiliaC, catch: Forum vocabulary is overridden to required regardless of field settings
parent e14126d6
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -335,8 +335,6 @@ function forum_form_node_form_alter(&$form, FormStateInterface $form_state, $for
if (isset($form['taxonomy_forums'])) {
$widget =& $form['taxonomy_forums']['widget'];
// Make the vocabulary required for 'real' forum-nodes.
$widget['#required'] = TRUE;
$widget['#multiple'] = FALSE;
if (empty($widget['#default_value'])) {
// If there is no default forum already selected, try to get the forum
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment