Hi,

When no terms are available it's currently possible to add an empty term to the list. Here's a mini patch to solve that issue.

Can anyone provide me some feedback please?

thanks,

Thomas

CommentFileSizeAuthor
autocomplete_deluxe-no-empty-terms.patch1.09 KBAnonymous (not verified)

Comments

Anonymous’s picture

Status: Active » Needs review

correcting status

sepgil’s picture

Status: Needs review » Needs work

Does this actually work? Normally there should be only a message if you entered something, and therefore the message "No terms could be found. Please type in order to add a new term." will never be shown.

Anonymous’s picture

This patch is needed.
There is a field setting called 'Minimum length' which is set to '0' by default. This means that by simply clicking in an autocomplete deluxe field, the suggestion list will open and say "The term '' will be added".

However, the patch doesn't work ideally...
When the new "No terms could be found..." message is displayed, it's possible to click on the message which adds the message text to the field. That's obviously not the intention. Needs work.

Anonymous’s picture

Just worked out that this is only an issue if there are no results (i.e. if the referenced vocabulary is empty). If there are terms in the vocab, then they are displayed when clicking in the empty autocomplete deluxe field and you don't get the "The term '' will be added" message.

rajab natshah’s picture

Issue summary: View changes
Status: Needs work » Closed (outdated)