Skip to content
Snippets Groups Projects
Commit a623d3fc authored by catch's avatar catch
Browse files

Issue #1060772 by agentrickard, DeweyOxberger: Fixed Create a view of taxonomy...

Issue #1060772 by agentrickard, DeweyOxberger: Fixed Create a view of taxonomy terms (Views UI) and get an error from hook_form_alter().
parent a8a71c6d
No related branches found
No related tags found
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
......@@ -582,7 +582,7 @@ function forum_field_storage_pre_update($entity_type, $entity, &$skip_fields) {
*/
function forum_form_alter(&$form, $form_state, $form_id) {
$vid = variable_get('forum_nav_vocabulary', 0);
if (isset($form['vid']) && $form['vid']['#value'] == $vid) {
if (isset($form['vid']['#value']) && $form['vid']['#value'] == $vid) {
// Hide critical options from forum vocabulary.
if ($form_id == 'taxonomy_form_vocabulary') {
$form['help_forum_vocab'] = array(
......
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