Closed (fixed)
Project:
Taxonomy Access Control
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Feb 2005 at 19:25 UTC
Updated:
29 Mar 2005 at 20:15 UTC
Module is not compatible with table prefixes. Many queries used tables without '{..}' brackets. It's very very bad.
Comments
Comment #1
pyromanfo commentedPlease look at other issues before posting. This has been fixed in CVS for months. CVS works with 4.5.x. There have been at least 2 other issues on this.
Comment #2
axel commentedOps, sorry for double. Though in CVS version at least one query still miss prefix. See query before end of the module code under comment: "// Determine which nodes don't belong to a category". But thanx for flash response to bugreport :)
Comment #3
pyromanfo commentedGood catch, fixed in CVS.
Comment #4
axel commented:) Any case module is good, thanx for your work.
Comment #5
malfunct commentedMissed one other table reference in this fix:
its on line 788 that I see it, I have revision 1.33 from cvs
the actual line: $query = db_query("SELECT n.nid FROM node n LEFT JOIN {term_node} t ON t.nid=n.nid WHERE t.nid IS NULL");
the fixed line: $query = db_query("SELECT n.nid FROM {node} n LEFT JOIN {term_node} t ON t.nid=n.nid WHERE t.nid IS NULL");
Comment #6
malfunct commentedThe issue is fixed in the latest CVS version. Sorry it took me so long to try it out.
Comment #7
pyromanfo commentedGreat, thanks!
Comment #8
(not verified) commented