Download & Extend

Cannot create new term when field is required and vocabulary is empty

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

Status:active» needs work

Will have a look at it ...

#2

Version:7.x-1.5» 7.x-1.x-dev
Status:needs work» needs review

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

Status:needs review» fixed

#4

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

nobody click here