To reproduce:

1. put something in the moderation queue with a specific taxonomy.
2. moderate it until it passes the limit and is "promoted"
3. check it's taxonomy -- it has reset to '0' and its corresponding database entry is lost.

Is this a bug with my specific installation of drupal or is it an actual bug?

Drupal 4.3.1

-Bobby Cox
view.rit.edu

Comments

theview’s picture

Hello again,

I've traced this problem and it seems to mostly originate somewhere within node.module or taxonomy.module, possibly with the node_save function in node.module -- which only seems to be used by queue.module and bloggerapi.module, and image module, which would suggest that its something that could be overlooked for quite a while.

When i try to print out the contents of $node->taxonomy from queue.module, node.module, and taxonomy.module, I get nothing. I'm new to PHP, so I'm not an expert, but I'm not new to programming. Anyway, this is probably a trivial bug for those In The Know to fix :)

Check out View Online!

dries’s picture

It is related to these bug reports:

The problem is that node_save() will overwrite the existing taxonomy terms if you don't attach them to the $node object. Needs fixing.