Subqueue count displays incorrectly after adding a node on nodequeue tab

ezra-g - May 20, 2009 - 15:55
Project:Nodequeue
Version:6.x-2.1
Component:Code
Category:bug report
Priority:normal
Assigned:ezra-g
Status:closed
Description

After adding a node to a subqqueue on the nodequeue tab at /node/[nid]/nodequeue , the subqueue count displays as being increased by 2 until the page is refreshed. This is because we're increasing the reported subqueue count before it's passed asynchronously by nodequeue_admin_add_node. This used to work until nodequeue_subqueue was made to increase the subqueue count in #446902: Same position in queue created when adding to nodequeue with VBO. Because the subqueue is now passed by reference to nodequeue_admin_add_node, increasing the subqueue count in calling functions is no longer necessary. Here's a patch.

AttachmentSize
nodequeue-sq-size.patch964 bytes

#1

ezra-g - May 20, 2009 - 15:57
Status:needs review» fixed

Fixed.

#2

System Message - June 3, 2009 - 16:00
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.