| Project: | Active Tags |
| Version: | 6.x-1.3 |
| Component: | Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
Hi,
i created a vocabulary "languages" and made it default for a new content type called job offers.
But when i enable the active tags, the ajax field autocompletes only terms from the forums vocabulary (the list of forums), same with the popular tags proposals.
And when i submit, a new term is not inserted anywhere, neither in my languages nor in the forum vocabulary.
This is astonishing, cause within the forum, it works quite nicely. There i use the taxonomy role module for the admin section and a special administration vocabulary. Everything works there as expected. Autocomplete and proposals refer exactly to the chosen vocabulary.
Do you have a clue why the active tags ignore the other vocabularies in my new content type(permissions are set now freely for all vocabularies) and only looks for the forum categories?
I changed all possible or impossible settings, cleared the cache, gave all permissions, but without a result.
Thanx
Bernd
Comments
#1
Yeah, i have the same issue
#2
I think the problem is in the way JS extracts the vocabulary ID set in PHP. The suspect place is in active_tags.js, line 70:
var vid = context.substr(20,1);
To me this seems to assume the VID to be one character long and will fail for any vocabulary with ID >=10.
Please try my patch.
#3
Once again, with the correct status I believe.
My fix is a one liner that will fix the way JavaScript extracts the vocabulary number when generating the url for taxonomy/autocomplete.
#4
The patch works for me! THANK YOU!
#5
Same here, the patch is working.
Thank you!
#6
committed, thanks for the patch and testing.
#7
I'm still having this porblem. The widget should populate from VID=11 but it populates from VID=10 instead
#8
Sorry forgot to change status. I hope "active" is correct since the patch is now committed into 1.2
#9
Debugging I found an issue with some new code in 1.2 that will affect forms with multiple vocabulary fields. The fix is nice though because this same area was also an issue with the content_taxonomy integration as well, so I got to kill two bugs with one.
shadysamir please test this patch.
#10
Working fine. I have the same vocabulary used several times in multiple content taxonomy fields. I also have popular terms enabled for this vocabulary (even though they're not showing with CT widget)
#11
Thanks. Committed. Rolled 1.3 as this was a critical fix.
#12
There are
var vid = context.substr(20,1);in active_tags_popular.js in 1.3 :(#13
#14
Fixed and committed. Will be in the next release when #325467: Popular tags are not popular & SQL group by issues on pgSQL and MySQL 4 is committed.
#15
Automatically closed -- issue fixed for 2 weeks with no activity.