Closed (fixed)
Project:
Acidfree Albums
Version:
4.7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Aug 2006 at 08:14 UTC
Updated:
27 Aug 2006 at 22:28 UTC
Hello!
Module i18n installs a hook on db_rewrite_sql, which manipulates the query and adds a join with the i18n table. This creates a problem with the following query:
Column 'nid' in field list is ambiguous query: SELECT COUNT(nid) FROM node n INNER JOIN acidfree ON acidfree.aid = n.nid INNER JOIN acidfree_hierarchy ON child = aid LEFT JOIN i18n_node i18n ON n.nid = i18n.nid WHERE (i18n.language ='ia' OR i18n.language ='' OR i18n.language IS NULL) AND (n.moderate = 0 AND n.status = 1) AND class <> 'album' AND parent=54 AND CONCAT(LPAD(5555 + acidfree.weight, 4, '0'), LPAD(acidfree.aid, 10, '0')) < '55550000000055'
To solve this, I changed the line 2048 of acidfree.module by using "SELECT COUNT (n.nid)". Please apply this fix.
Comments
Comment #1
vhmauery commentedOkay, I can fix this, but be aware that Acidfree is not really compatible with the i18n module. Translating Acidfree items doesn't work very well iirc.
I have committed a patch to fix this. It should be repackaged in about 12 hours. Or, you can get revision 1.62.2.46 from CVS.
Comment #2
vhmauery commented