From cc421475b7313b59b32ca7aa68c5a533f1ffcea8 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Thu, 22 Oct 2009 00:49:13 +0000 Subject: - Patch #603236 by bjaspan, catch: add count facility to field_attach_query(). Was ready before code freeze. --- modules/taxonomy/taxonomy.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/taxonomy/taxonomy.module') diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module index 8a4bbd11c..cf1ef1bc1 100644 --- a/modules/taxonomy/taxonomy.module +++ b/modules/taxonomy/taxonomy.module @@ -1200,7 +1200,7 @@ function _taxonomy_clean_field_cache($term) { if ($obj_types) { $conditions[] = array('type', $obj_types, 'NOT IN'); } - $results = field_attach_query($field['id'], $conditions, FIELD_QUERY_NO_LIMIT); + $results = field_attach_query($field['id'], $conditions, array('limit' => FIELD_QUERY_NO_LIMIT)); foreach ($results as $obj_type => $objects) { foreach (array_keys($objects) as $id) { $cids[] = "field:$obj_type:$id"; -- cgit v1.2.3