Posted by mr.alinaki on September 24, 2009 at 2:51pm
5 followers
Jump to:
| Project: | Big Autocomplete TAXonomy |
| Version: | 6.x-1.7 |
| Component: | User interface |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
Why module displays both tid and name in autocomplete field? Action:1395, Flight Combat:2442 That confuses administrators...
Comments
#1
A term can easily be repeated within a taxonomy:
America
- New York
-- Soho
Britain
- London
-- Soho
#2
Some users seems to be confused by this issue. Could be possible to rebuild this feature with a more themeable method?
For example:
[Field-Label:][Autocomplete text area] [tid number]
This way admins are allowed to hide the tid number, make it more discreet and show clearly it's not part of the term name.
Regards.
#3
#4
On line 191,
replace
$result = db_query_range(db_rewrite_sql("SELECT t.tid, CONCAT(t.name,':',t.tid) AS name FROM {term_data} t , {term_lowername} l WHERE t.vid = %d AND l.tid = t.tid AND lowername LIKE LOWER('$contains%s%%')", 't', 'tid'), $vid, $last_string, 0, 10);with
$result = db_query_range(db_rewrite_sql("SELECT t.tid, t.name AS name FROM {term_data} t , {term_lowername} l WHERE t.vid = %d AND l.tid = t.tid AND lowername LIKE LOWER('$contains%s%%')", 't', 'tid'), $vid, $last_string, 0, 10);#5
Actually that doesn't save terms.
To avoid confusion, it can show hierarchy of term while selecting, instead of tid.