Permalink
Browse files

fix(search): search hooks no longer reset subtypes

Removes legacy code that prevented searching for individual group and user
subtypes.
  • Loading branch information...
hypeJunction committed Feb 17, 2016
1 parent c751830 commit 5d6987ceee63c0975811196a66f2d7f4a52e661a
Showing with 1 addition and 6 deletions.
  1. +1 −6 mod/search/search_hooks.php
@@ -84,9 +84,6 @@ function search_groups_hook($hook, $type, $value, $params) {
$where = search_get_where_sql('ge', $fields, $params);
$params['wheres'][] = $where;
// override subtype -- All groups should be returned regardless of subtype.
$params['subtype'] = ELGG_ENTITIES_ANY_VALUE;
$params['count'] = TRUE;
$count = elgg_get_entities($params);
@@ -173,9 +170,7 @@ function search_users_hook($hook, $type, $value, $params) {
} else {
$params['wheres'][] = "$where";
}
// override subtype -- All users should be returned regardless of subtype.
$params['subtype'] = ELGG_ENTITIES_ANY_VALUE;
$params['count'] = true;
$count = elgg_get_entities($params);

0 comments on commit 5d6987c

Please sign in to comment.