Needs review
Project:
Content Taxonomy
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Aug 2011 at 14:22 UTC
Updated:
10 Aug 2011 at 14:22 UTC
When a node with content_taxonomy fields is reverted to a previous revision, sometimes _content_taxonomy_taxonomy_unset function remove other taxonomy terms.
function node_revision_revert_confirm_submit($form, &$form_state) {
...
if (module_exists('taxonomy')) {
$node_revision->taxonomy = array_keys($node_revision->taxonomy);
}
...
node.module recreate the $node->taxonomy array with array_keys. The function _content_taxonomy_taxonomy_unset has a little bug when $node->taxonomy is array of 'tids'.
The patch for the fix is attached.
| Comment | File | Size | Author |
|---|---|---|---|
| content_taxonomy-taxonomy_unset.patch | 471 bytes | smartinm |