Problem/Motivation
Over in https://www.drupal.org/project/term_reference_tree/issues/3195698 a change was made to remove unpublished terms from the node add/edit form. This causes problems for users with the 'administer taxonomy' permission, who need to be able to add content and tag it to an unpublished term. For example, whilst preparing content that will be published later once the term has been published.
Steps to reproduce
* Create an unpublished term
* Log in as a user with 'administer taxonomy' permission
* Go to node add form, try to select the unpublished term - it's not there, but should be
Proposed resolution
Only hide unpublished terms if the user does not have the 'administer taxonomy' permission.
Issue fork term_reference_tree-3497889
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
Comment #3
nicrodgersComment #4
deasly commentedHonestly I think maybe this should have an extra option in the widget to "allow view of unpublished terms if user has 'administer taxonomy' permission" this leaves it open for more configuration abilities. Reasoning for this is if you have a large vocabulary with tons of unpublished terms you as an admin might still want them hidden based on your needs.
Comment #5
nicrodgers@deasly I like the idea - I think that would be better as a new issue, category Feature Request, so that it can be worked on separately to this.
I'd prefer to keep this issue as a bug because the behaviour unexpectedly changed between 2.0.1 and 2.0.2 because of the related issue.
Comment #6
deasly commented@nicrodgers Makes sense. I created the issue (feature request) here and connected this issue as the parent issue. https://www.drupal.org/project/term_reference_tree/issues/3498020
Comment #7
vladimirausLooks good.
Comment #8
vladimirausThank you for your contributions!
Merged.