Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi, if the vocabulary is empty and the term field is required, the "new term" form is not visible because the only value on the select box is "" so the js is not triggered.
Comments
Comment #1
stBorchertWill have a look at it ...
Comment #2
stBorchertHey, that was a funny one ;)
I've committed two small changes that implement the following behavior:
* condition:
- vocabulary is empty
- field is not required
* behavior:
- field is displayed showing the options
- None -
and<Add new item>
* condition:
- vocabulary is empty
- field is required
* behavior:
- field is displayed directly showing the form to add a new term without the ability to cancel the input
You can test the functionality using the latest code from git or wait some hours for the next development release (current is 7.x-1.5+8-dev, February 25, 2013 - 13:37).
Thanks for finding this bug.
Comment #3
stBorchert