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.
Line 954:
$sql = 'SELECT DISTINCT(n.nid), n.sticky, n.title, n.created FROM {node} n INNER JOIN {term_node} tn ON n.vid = t.vid WHERE tn.tid IN ('. $str_tids .') AND n.status = 1 ORDER BY '. $order;
should be:
$sql = 'SELECT DISTINCT(n.nid), n.sticky, n.title, n.created FROM {node} n INNER JOIN {term_node} tn ON n.vid = tn.vid WHERE tn.tid IN ('. $str_tids .') AND n.status = 1 ORDER BY '. $order;
Comment | File | Size | Author |
---|---|---|---|
#6 | 166780.patch | 1.1 KB | blakehall |
#4 | taxonomy.tar_.gz | 15.46 KB | jim2161 |
Comments
Comment #1
Wim LeersConfirmed. This bug was introduced with Drupal 6.
Comment #2
webchickTo save someone else squinting at this for 5 minutes, the error is that:
ON n.vid = t.vid
needs to be:
ON n.vid = tn.vid
(note the tn for term_node, not t)
There's no patch here, but it would be trivial to create one.
Comment #3
jim2161 CreditAttribution: jim2161 commentedComment #4
jim2161 CreditAttribution: jim2161 commentedUpload taxonomy.tar.gz
Comment #5
webchick@zamboni9: Close. But what we need is the actual fix_taxonomy.patch file uploaded here.
Comment #6
blakehall CreditAttribution: blakehall commentedPatch attached (created from drupal root).
Comment #7
nedjoLooks good.
Comment #8
Gábor HojtsyGood catch. Committed.
Comment #9
(not verified) CreditAttribution: commented