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)
Comments
Comment #2
shadysamir CreditAttribution: shadysamir as a volunteer commentedHere is a patch for second issue
Comment #4
fizk CreditAttribution: fizk commentedComment #5
shadysamir CreditAttribution: shadysamir as a volunteer commentedAdded patch for first point in #2760029: Rules action does not respect hook_nodequeue_subqueues
Comment #6
shadysamir CreditAttribution: shadysamir as a volunteer 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 CreditAttribution: fizk commentedCommitted, thanks!