Originally posted by esilou as http://drupal.org/node/124781.

I have a forum which allows users to select from a dropdown to further classify their post, rather like you can on this forum with the Drupal version.

This "Location" vocabulary is also used on users' Biographies.

When I choose, from within "add/remove content" in MySite, one of these vocabulary terms, the forum posts that have that term are not showing....but the Biographies with that term are.

Is there any reason why forum posts that are tagged with another term aren't showing? Is it because they're already covered by the main "Forum" vocabulary?

Comments

agentrickard’s picture

This issue specifically was a design decision to keep Forums and Taxonomies separate. There is an explicit statement in line 94 of term.inc that forbids showing Forum posts under Terms.

    $sql = db_rewrite_sql("SELECT n.nid, n.changed FROM {node} n INNER JOIN {term_node} t ON n.nid = t.nid WHERE n.status = 1 AND n.type != 'forum' AND t.tid = %d ORDER BY n.changed DESC");

Would be changed to:

    $sql = db_rewrite_sql("SELECT n.nid, n.changed FROM {node} n INNER JOIN {term_node} t ON n.nid = t.nid WHERE n.status = 1 AND t.tid = %d ORDER BY n.changed DESC");

I made this decision pretty blindly, since I don't use Forums.

What do other people think? Are Forums and Terms separate?

agentrickard’s picture

I have changed this behavior on the demo site: http://therickards.com/mysite/default if you'd like to see.

agentrickard’s picture

Assigned: Unassigned » agentrickard
Status: Active » Closed (fixed)

Committed to HEAD, 5-x-1-dev and 4-7-x-3-dev.