I have two free tagging taxonomies for my content type. When I have Yahoo Terms set to get terms whenever a node is created and updated, the taxonomy variable of the node is cleared when the node is edited. It must have something to do with these lines in yahoo_terms_nodeapi:
case 'prepare':
$automatic = variable_get('yahoo_terms_enable_runtime', YAHOO_TERMS_ONLY_MANUALLY);
if ($automatic == YAHOO_TERMS_ON_NODE_CREATION_AND_UPDATE && isset($node->nid)) {
$node->taxonomy = array();
}
break;
When the node form is being prepared, it will always clear the contents of the taxonomy if the node already exists and if the yahoo_terms_enable_runtime is set to creation and update. Shouldn't it only clear the terms associated with the vocabulary where Yahoo Terms go?
Comments
Comment #1
Anonymous (not verified) commentedI fixed my issue with this patch:
Comment #2
Johnny vd Laar commentedi had the same issue in drupal 6. the fix works here as well
Comment #3
Shiny commentedCommited to CVS for drupal 5 and 6.