Closed (won't fix)
Project:
Content Taxonomy
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 May 2008 at 09:16 UTC
Updated:
1 Sep 2010 at 10:21 UTC
I stumbled upon this while having 2 taxonomy fields from different vocabularies on the same content type; with save == 'tag'
While the taxonomy data is saved correctly in the taxonomy tables, when viewed each field's #view would show terms from both vocabs.
turned out content_taxonomy_terms_by_field() is not consulting (filtering by) vocab id (vid) and simply returns all terms for fields with depth == 1.
Attached patch does filtering in PHP, although a SQL-level filtering is an alternative.
| Comment | File | Size | Author |
|---|---|---|---|
| content_taxonomy_vid_error.patch | 528 bytes | k8n |
Comments
Comment #1
thepanz commentedmaybe here: http://drupal.org/node/210824 you can find another solution
Comment #2
k8n commentedtrue. the solution is similar. let the maintainers decide.
Comment #3
yonailoAs the #1 comment says, this too can be done in SQL with the following query:
inside content_taxonomy.module:content_taxonomy_terms_by_field()
Comment #4
yonailothese patches will not solve the problem if you use two active select fields with the same vocabulary.
Comment #5
abhaga commentedAfter spending 2 days trying to figure out why my active select field was getting reset to arbitrary terms from an entirely different vocabulary, I also ended up on the same bug. Using the above patch solves the problem.
This should be fixed asap.
Comment #6
magnus commentedCleanup of old issues. According to maintainer: "active development is only done for the 6.x branch! 5.x is not supported any more".
Open a new issue if problem still exist.