Closed (fixed)
Project:
CVS integration
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 May 2007 at 20:13 UTC
Updated:
27 May 2007 at 22:02 UTC
In the cvs_get_contributed_projects() function of cvs.module, there is the following line:
$result = db_query("SELECT DISTINCT(f.nid), n.title, COUNT(f.nid) AS commits FROM {cvs_files} f INNER JOIN node n ON n.status = 1 AND n.nid = f.nid WHERE f.uid = %d GROUP BY f.nid ORDER BY commits DESC", $uid);
that is missing curly braces around the node table.
The corrected line should be:
$result = db_query("SELECT DISTINCT(f.nid), n.title, COUNT(f.nid) AS commits FROM {cvs_files} f INNER JOIN {node} n ON n.status = 1 AND n.nid = f.nid WHERE f.uid = %d GROUP BY f.nid ORDER BY commits DESC", $uid);
AC
Comments
Comment #1
dwwgood catch, thanks. committed to HEAD, DRUPAL-4-7--2 and DRUPAL-4-7.
Comment #2
(not verified) commented