Closed (won't fix)
Project:
Content Taxonomy
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 Jun 2009 at 19:42 UTC
Updated:
1 Sep 2010 at 10:41 UTC
In the case of a node preview, the item list has both 'value' and '#delta', but the code in content_taxonomy_field_formatter()
then ends up displaying the term twice (once for each, value and delta). On actual node display, it works fine, though, so I don't think the later formatting code should touched.
The fix seems to be:
if ($node->in_preview) {
if (is_array($item)) {
foreach ($item as $key => $tid) {
if ($key =="value"){ // add this to filter down to only the value key, and avoid delta key, which if also expanded, ends up doubling term display.
$item[$key] = taxonomy_get_term($tid);
} // close if
}
}
}
Comments
Comment #1
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".
Reopen issue if problem still exist in 6.x branch.