I am using Smartqueue Language and Rules to automatically add new nodes to their respective language subqueue. I found out that the action adds my nodes to all subqueues. I inspected the code in nodequeue.rules.inc and found two bugs.
First, the action checks for two smartqueues only, taxonomy and domain. It does not check for any other smartqueues installed.
Second, the action checks if any smartqueues (limited to taxonomy smartqueue) or domain smartqueue is not available to add the node to a subqueue on line 325, but the condition checks twice for domain smartqueue:
if (!$smartqueue_domain_enabled && !$smartqueue_domain_enabled){
which should be
if (!$smartqueue_enabled && !$smartqueue_domain_enabled)
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | nodequeue_final-check-for-subqueue-in-rules.patch | 946 bytes | shadysamir |
Comments
Comment #2
shadysamir commentedHere is a patch for second issue
Comment #4
fizk commentedComment #5
shadysamir commentedAdded patch for first point in #2760029: Rules action does not respect hook_nodequeue_subqueues
Comment #6
shadysamir commentedI am changing the title to match the specific issue addressed by the patch. The other issue is covered in #2760029: Rules action does not respect hook_nodequeue_subqueues
Comment #8
fizk commentedCommitted, thanks!