possible bug in nat_get_nids
adub - February 24, 2009 - 13:31
| Project: | Node Auto Term [NAT] |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
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);
#1
(Not very clear above but remove the line)
$tids = implode(', ', $tids);#2
Fixed. Next time, please submit changes in patch form.
Thanks,
-K
#3
Automatically closed -- issue fixed for 2 weeks with no activity.