mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
(merged from branches/roa. use "svn log -c <changeset> -g <module-svn-path>" for detailed commit message)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@60234 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
772490ca99
commit
23df65ec5a
@ -352,9 +352,8 @@ class ModelAdmin_CollectionController extends Controller {
|
||||
*/
|
||||
function search($request) {
|
||||
$model = singleton($this->modelClass);
|
||||
$searchKeys = array_intersect_key($request->getVars(), $model->searchable_fields());
|
||||
$context = $model->getDefaultSearchContext();
|
||||
$results = $context->getResults($searchKeys, null, array('start'=>0, 'limit'=>$this->parentController->stat('page_length')));
|
||||
$results = $context->getResults($request->getVars(), null, array('start'=>0, 'limit'=>$this->parentController->stat('page_length')));
|
||||
$summaryFields = $model->summaryFields();
|
||||
|
||||
$tf = new TableListField(
|
||||
|
Loading…
Reference in New Issue
Block a user