? 423322_node_term_wrong_revision.patch
? tokenSTARTER.info
? tokenSTARTER.module
? token_node.inc_taxonomy.patch
Index: token_node.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/token/token_node.inc,v
retrieving revision 1.5.4.12
diff -u -p -r1.5.4.12 token_node.inc
--- token_node.inc	10 Apr 2009 17:58:05 -0000	1.5.4.12
+++ token_node.inc	19 Apr 2009 20:29:39 -0000
@@ -113,7 +113,7 @@ function node_token_values($type, $objec
               if (!$vid) {
                 continue;
               }
-              $term = db_fetch_object(db_query_range("SELECT t.tid, t.name FROM {term_data} t INNER JOIN {term_node} r ON r.tid = t.tid WHERE t.vid = %d AND r.nid = %d ORDER BY weight", $vid, $object->nid, 0, 1));
+              $term = db_fetch_object(db_query_range("SELECT t.tid, t.name FROM {term_data} t INNER JOIN {term_node} r ON r.tid = t.tid WHERE t.vid = %d AND r.vid = %d ORDER BY weight", $vid, $object->vid, 0, 1));
               $term->vid = $vid;
             }
 
