Queue Manipulation callbacks not updated from Drupal 5

wulff - June 5, 2009 - 17:50
Project:Nodequeue
Version:6.x-2.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

What it says on the tin :-)

Attached patch makes functions expect subqueue objects.

AttachmentSize
nodequeue_php_notices.patch2.5 KB

#1

nrambeck - June 22, 2009 - 15:55
Title:Functions get subqueue object but expect subqueue ID» Queue sort functions fail with javascript turned off

This bug causes the sorting and removal of nodes inside a queue to fail if JS is turned off.

I am attaching an improved patch which also fixes another bug in the same functions in that it attempts to send a non-existent $node->nid variable to the nodequeue_check_token() function instead of using the $pos variable.

AttachmentSize
nodequeue-nojs-sort-fix.patch 2.84 KB

#2

ezra-g - June 23, 2009 - 17:00
Status:active» needs work

Thanks for finding this bug and submitting a patch!

For consistency, I think we should get both the restricted and unrestricted list of nids from helper functions, rather than rewriting that query in different places. Are you able to re-roll this patch with that change? Also, it would be great if you could use the cvs diff -up options when submitting patches.

Thanks!

#3

ezra-g - June 23, 2009 - 17:07
Title:Queue sort functions fail with javascript turned off» Quee Sort, Ajax Add bugs caused by recent SA fix

I marked #489354: Latest Build broke Nodequeue - can't add nodes as a duplicate of this, since both depend on creating the same new nodequeue internal functions. It would be great if the fixes for both issues, and the related new helper functions were rolled into a single patch :).

#4

kmillecam - June 25, 2009 - 20:22

Seeing same issue on my site.

Cannot add nodes to nodequeues.

#5

kmillecam - June 25, 2009 - 20:40

Here's what I'm seeing.

AttachmentSize
Picture 2.png 41 KB

#6

ezra-g - July 1, 2009 - 22:45
Title:Quee Sort, Ajax Add bugs caused by recent SA fix» Queue Manipulation callbacks not updated from Drupal 5
Status:needs work» fixed

Between the reports on this issue and the other one mentioned here, I became confused about what we're actually addressing here, but now I've sorted that out.

This looks great. Thanks wulff and nrambeck for finding and fixing this. Committed.

#7

System Message - July 15, 2009 - 22:50
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.