Posted by FiNeX on February 25, 2013 at 12:29pm
3 followers
Jump to:
| Project: | Simple hierarchical select |
| Version: | 7.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
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
#1
Will have a look at it ...
#2
Hey, 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.
#3
#4
Automatically closed -- issue fixed for 2 weeks with no activity.