For reasons I don't know, it's possible to create vocabularies with multiple identical terms. If you add a taxonomy reference field to a content type and set the widget to "select list", those multiple terms (with identical term names) are displayed in the list. If you're using the autocomplete term widget, only one instance of the term is shown, it seems to be the one last added. Thus the user has no control over the resulting tid added to the node: there are some identical term names, e.g. with tids 23, 76 and 103, but the one selected by the autocomplete widget is always the last one. Think this is a structural inconsistency.

Regards,
Boris

Comments

vineet.osscube’s picture

Yes it is confusing, Why duplicate term name is allowed in same vocabulary even at same level. Best solution only be to restrict about unique term name at same level (under same parent and same vocabulary).
For other solution, There can be the id based auto complete functionality, So some kind of javascript be included for managing on change event of auto complete and update term ids in hidden element (which must be the actual submitted element). Now we could have some config (term id or term name ) chose at manage field for auto complete field configuration. Yes that need to be alter some core as well as solution already built for used term name need to be changed.
but the exact problem is that when we select any value bring by the auto complete list it stores the key in the text filed and for that the array constructed at backend is combination of name in key and name in value i.e
$key[name] = $value[name] so the array with same name stores only last value.

joachim’s picture

Issue summary: View changes
Status: Active » Closed (duplicate)