Closed (fixed)
Project:
Drupal core
Version:
6.x-dev
Component:
taxonomy.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Sep 2008 at 15:37 UTC
Updated:
27 Oct 2009 at 15:20 UTC
Jump to comment: Most recent file
Comments
Comment #1
damien tournoud commentedYou are perfectly right. Please submit a patch!
Comment #2
bob_hirnlego commentedHere it is... this is my first patch, hope that everything's fine.
Comment #3
catchLooks sane, not tested yet. Bumping to 7.x.
Comment #4
cdale commentedI just experienced a warning due to this issue myself. I've changed it back to 6.x as I don't think this is relevant for 7.x anymore with the new hook_query_alter and all.
I've created a patch against 6.x that should correct this.
Comment #5
catchThis code is still in Drupal 7, but we're quite far from a point where hook_query_alter will take it over. I've left this at 6.x, but I've opened a Drupal 7 issue so it doesn't get lost there. #336849: Wrong $primary_field and $primary_table passed in db_rewrite_sql inside taxonomy_overview_terms()
Comment #6
cdale commentedI've been running the above patch for quite some time now, and I think it is simple enough, so marking as RTBC.
Comment #7
gábor hojtsyLooks good, committed to D6. I'd advocate committing this to D7 now, since it is a trivial patch. That would help us not loose this improvement in the shuffling between the new and old rewrite code.
Comment #9
cdale commentedNew patch for D7.
Comment #10
dries commentedWe should have a test for this ...
Comment #11
cdale commentedHow would I go about writing a test for this? I'm happy to attempt it, I just can't see how to go about it. And would it test just this specific db_rewrite? Or all of them?
Comment #12
catchMoving back to D6, where this doesn't need a test, since there's no db_rewrite_sql() in 7 now.
Comment #13
cdale commentedThis can be marked as fixed then, as it's already been committed to D6 in #7.