Skip to content
This repository has been archived by the owner on Jan 10, 2021. It is now read-only.

Commit

Permalink
FIX, adding an extension hook to update filtering.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan Glasl committed Oct 13, 2017
1 parent 7c2cf6d commit 2d179ee
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# [extensible-search](https://packagist.org/packages/nglasl/silverstripe-extensible-search)

_The current release is **3.1.10**_
_The current release is **3.1.11**_

> A module for SilverStripe which will allow user customisation and developer extension of a search page instance, including analytics and suggestions.
Expand Down
4 changes: 4 additions & 0 deletions code/pages/ExtensibleSearchPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -841,6 +841,10 @@ public function getSearchResults($data = null, $form = null) {
$list = $list->filter($hierarchy ? 'ParentID' : 'SiteID', $filter);
}

// Apply custom filtering.

$this->extend('updateFiltering', $list);

// Apply the sorting.

$list = $list->sort("{$data['SortBy']} {$data['SortDirection']}");
Expand Down

0 comments on commit 2d179ee

Please sign in to comment.