When I'm on a node edit page and click the nodequeue tab, I only see the first queue that the node is available to be put into.
Looks like the problem is in: nodequeue_load_subqueues_by_reference
Specifically:
foreach ($references as $qid => $reference) {
if ($where) {
$where .= ' OR ';
}
$where .= 's.qid = :qid AND s.reference IN (:reference)';
$query->where($where, array(':qid' => $qid, ':reference' => $reference));
}
This SQL is only returning the first queue, not subsequent ones.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | nodequeue_973404.patch | 1.05 KB | Scott Reynolds |
| #2 | nodequeue-load-subqueues.patch | 821 bytes | berenddeboer |
Comments
Comment #1
berenddeboer commentedSame here.
Comment #2
berenddeboer commentedHere a patch. Not sure how cleanly it applies to the released dev version as I have added more patches.
Comment #3
berenddeboer commentedComment #4
kevin p davison commentedStill seems to be an issue in 7.x-2.x-dev Dec 27. I can only see one Nodequeue when I have several for this content type.
Comment #6
Scott Reynolds commentedHere is a nicer patch using db_conditions properly
Comment #7
slashrsm commentedWorks great for me.
Comment #8
willmoy commented#6: nodequeue_973404.patch queued for re-testing.
Comment #9
willmoy commentedConfirm RTBC
Comment #10
merlinofchaos commentedThere's an extra db_and() in here that's unnecessary:
Should just be
Comment #11
merlinofchaos commentedIgnore #10. I am wrong.
Comment #12
merlinofchaos commentedCommitted a patch that is substantially the same as Scott's; I wrote it before I found this issue.