Closed (fixed)
Project:
Content Taxonomy
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
25 Feb 2007 at 15:57 UTC
Updated:
16 Mar 2007 at 20:30 UTC
On a Debian system with MySQL 4.1.x I could not get the autocomplete function to work. I found that the queries in content_taxonomy_autocomplete_load() never returned anything.
The queries don't make use of db_rewrite_sql(), the documentation suggest that they should.
http://api.drupal.org/api/5/function/db_rewrite_sql
"Rewrites node, taxonomy and comment queries. Use it for listing queries. Do not use FROM table1, table2 syntax, use JOIN instead."
I rewrote the queries, see patch, and got it working on my system.
The patch also makes the autocomplete function to add a space after the comma between terms, just like the taxonomy module does.
Thanks for a very useful module!
| Comment | File | Size | Author |
|---|---|---|---|
| content_taxonomy_autocomplete_db_rewrite_sql.patch | 1.92 KB | frjo |
Comments
Comment #1
jvalletto commentedThis fixes the issue I had with autocomplete not working.
+1
Changing this from NR -> RTBC.
Comment #2
mh86 commentedI committed the patch to 4.7 and 5.
Thanks for your help!!
Comment #3
(not verified) commented