Skip to content

Commit

Permalink
Better yet, actually allow it to search all 'search' fields.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Sep 18, 2014
1 parent 25f4d0b commit d0c52a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions turba/lib/Api.php
Expand Up @@ -1084,7 +1084,7 @@ public function replace($uid, $content, $contentType, $sources = null)
* - customStrict: (array) An array of fields that must match exactly.
* DEFAULT: None
* - fields: (array) The fields to search on.
* DEFAULT: The 'name' field is searched.
* DEFAULT: Search all configured search fields.
* - forceSource: (boolean) Whether to use the specified sources, even
* if they have been disabled in the preferences?
* DEFAULT: false
Expand Down Expand Up @@ -1177,7 +1177,7 @@ public function search($names = null, array $opts = array())
}
}
if (!count($criteria)) {
$criteria['name'] = $trimname;
$criteria = $cfgSources[$source]['search'];
}
}

Expand Down

0 comments on commit d0c52a9

Please sign in to comment.