Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The function nodequeue_load_random_node($sqid) is intended to return a random node from the subqueue specified by the id. Instead, because the query is malformed, the function returns nothing. I've attached a patch which should correct the issue on the alpha2 release.
Comment | File | Size | Author |
---|---|---|---|
#2 | 1167846.patch | 2.22 KB | Gekiboy |
#1 | 1167846.patch | 2.23 KB | amateescu |
nodequeue.random_node.patch | 892 bytes | Gekiboy | |
Comments
Comment #1
amateescu CreditAttribution: amateescu commentedThanks for the patch. I found the same problem in
nodequeue_view_random_node()
and also fixed a related issue innodequeue_view_nodes()
.Commited attached patch to 7.x. Thanks again :)
http://drupalcode.org/project/nodequeue.git/commit/964859f
Comment #2
Gekiboy CreditAttribution: Gekiboy commentedApparently Drush Make needs the patch to be generated with the --no-prefix option to work properly with the make files. I applied your patch and regenerated the patch file with the additional option.