387ca5b9615195ef0a098d4166b4c2e1b215dd95

Author: Mark Story

Date: 2009-02-09 21:13:21 -0500

Fixing search results missing by class name.

diff --git a/models/api_class.php b/models/api_class.php index 4d0f6a6..66fffab 100644 --- a/models/api_class.php +++ b/models/api_class.php @@ -142,6 +142,7 @@ class ApiClass extends ApiGeneratorAppModel { $conditions = array(); foreach ($terms as $term) { + $conditions['OR'][] = array('ApiClass.name LIKE' => $term . '%'); $conditions['OR'][] = array('ApiClass.slug LIKE' => $term . '%'); $conditions['OR'][] = array('ApiClass.method_index LIKE' => '%' . $term . '%'); $conditions['OR'][] = array('ApiClass.property_index LIKE' => '%' . $term . '%');