diff options
Diffstat (limited to 'modules/taxonomy')
-rw-r--r-- | modules/taxonomy/taxonomy.pages.inc | 2 | ||||
-rw-r--r-- | modules/taxonomy/taxonomy.test | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/modules/taxonomy/taxonomy.pages.inc b/modules/taxonomy/taxonomy.pages.inc index 3ee0b9743..bcaffbf25 100644 --- a/modules/taxonomy/taxonomy.pages.inc +++ b/modules/taxonomy/taxonomy.pages.inc @@ -120,7 +120,7 @@ function taxonomy_autocomplete($vid, $string = '') { $matches = array(); if ($last_string != '') { $result = db_query_range(db_rewrite_sql("SELECT t.tid, t.name FROM {term_data} t WHERE t.vid = :vid AND LOWER(t.name) LIKE LOWER(:last_string)", 't', 'tid'), array( - ':vid' => $vid, + ':vid' => $vid, ':last_string' => '%'. $last_string .'%', ), 0, 10); diff --git a/modules/taxonomy/taxonomy.test b/modules/taxonomy/taxonomy.test index be8e37815..6d8b25552 100644 --- a/modules/taxonomy/taxonomy.test +++ b/modules/taxonomy/taxonomy.test @@ -474,7 +474,7 @@ class TermEditTestCase extends DrupalWebTestCase { and that term name and description are saved.'), 'group' => t('Taxonomy')); } - + /** * Implementation of setUp(). */ @@ -525,4 +525,4 @@ class TermEditTestCase extends DrupalWebTestCase { $this->assertText($edit['name'], t('The randomly generated term name is present.')); $this->assertText($edit['description'], t('The randomly generated term description is present.')); } -}
\ No newline at end of file +} |