Problem/Motivation

The Taxonomy Max Depth settings are shown on the vocabulary overview page. It didn't appear there before updating my site to Drupal 11.3.2.

Since the taxonomy vocabulary base_form_id equals the form_id of the taxonomy vocabulary edit form, the taxonomy_max_depth_form_taxonomy_vocabulary_form_alter() hook implementation is also invoked for other taxonomy vocabulary forms such as the overview.

Steps to reproduce

Visit the overview page of a specific taxonomy vocabulary.

Proposed resolution

Add an extra form_id check.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

dieterholvoet created an issue. See original summary.

dieterholvoet’s picture

Issue summary: View changes

dieterholvoet’s picture

Status: Active » Needs review
camhoward’s picture

Thanks, @dieterholvoet.

I had the same issue after updating to Drupal 11.3.2. I manually applied the changes in 3568541-taxonomy-max-depth and it resolved the issue.

While my coding experience is not yet deep enough to do a full code review, I can confirm your proposed resolution removes the Taxonomy Max Depth settings from the vocabulary overview page.