1. Create a queue and select the "Treat translation nodes as a single node".
2. Create a node and a translation of that node.
3. Add the source node to the queue
4. Try to add the translated node through the nodequeue tab.

The link "Add to queue" will change to "Remove from queue" and the "In queue" number will increase but when you reload the page it will look like the node is not in the queue because the link becomes "Add to queue" again. The "In queue" number will however remain the same.

When the queue is in the "treat translations as a single node" mode it should look like the node is already in the queue. When you remove the node from the queue is should remove the translation set. Maybe it should also show which mode the queue is in as a column in the nodequeue tab.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mauritsl’s picture

Version: 6.x-2.5 » 6.x-2.8
Category: feature » bug
Status: Active » Needs review
FileSize
2.51 KB

I had the same problem. When you treat translated nodes automatically, the tnid (nid from source translation) is stored in the queue. The function nodequeue_set_subqueue_positions (which is used to check if the node is already in the queue) always uses the nid (even for child translations).

The patch attached fixed this problem for me. It duplicates the query to check the position for both modes if the module language_helpers is enabled.

amateescu’s picture

Version: 6.x-2.8 » 6.x-2.x-dev
Status: Needs review » Fixed
FileSize
1.6 KB
1.63 KB

Commited attached patches to 6.x and 7.x with a much simpler fix than the approach from #1.

http://drupalcode.org/project/nodequeue.git/commit/ba9e628
http://drupalcode.org/project/nodequeue.git/commit/44a0297

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.