Closed (fixed)
Project:
Simple hierarchical select
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
25 Feb 2013 at 12:29 UTC
Updated:
31 Mar 2013 at 10:30 UTC
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