Closed (fixed)
Project:
Node Auto Term [NAT]
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 Feb 2009 at 13:31 UTC
Updated:
10 Mar 2009 at 15:40 UTC
As far as I can tell nat_get_nids will only ever look at the first term passed. Seems to be easily resolved with the following:
// Results have not been cached.
- $tids = implode(', ', $tids);
$result = db_query("SELECT n.nid, t.name FROM {nat} n INNER JOIN {term_data} t USING (tid) WHERE n.tid IN (". db_placeholders($tids) .")", $tids);
Comments
Comment #1
adub commented(Not very clear above but remove the line)
$tids = implode(', ', $tids);Comment #2
Zen commentedFixed. Next time, please submit changes in patch form.
Thanks,
-K