Skip to content

Commit

Permalink
FIX Filter array keys need to match filter names
Browse files Browse the repository at this point in the history
Fixes #1
  • Loading branch information
simonwelsh committed Sep 26, 2012
1 parent e1de3dd commit 4dca0b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/control/ExtensionData.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ public function getCustomSearchContext() {
$filters = array(
'Name' => new PartialMatchFilter('Name'),
'CompatibleSilverStripeVersion' => new PartialMatchfilter('CompatibleSilverStripeVersion'),
'Keyword' => new PartialMatchFilter('Keywords.KeywordName'),
'Category' => new PartialMatchFilter('Category.CategoryName'),
'Keywords.KeywordName' => new PartialMatchFilter('Keywords.KeywordName'),
'Category.CategoryName' => new PartialMatchFilter('Category.CategoryName'),
);
return new SearchContext(
$this->class,
Expand Down

0 comments on commit 4dca0b8

Please sign in to comment.