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
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

adub - February 24, 2009 - 13:34

(Not very clear above but remove the line) $tids = implode(', ', $tids);

#2

Zen - February 24, 2009 - 15:39
Version:6.x-1.1-beta» 6.x-1.x-dev
Status:active» fixed

Fixed. Next time, please submit changes in patch form.

Thanks,
-K

#3

System Message - March 10, 2009 - 15:40
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.