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

adub’s picture

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

Zen’s picture

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

Status: Fixed » Closed (fixed)

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