-
Notifications
You must be signed in to change notification settings - Fork 824
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FIX Don't assume searchableFields() exists in gridfield filter
- Loading branch information
1 parent
908b6f2
commit 01808a8
Showing
3 changed files
with
76 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
tests/php/Forms/GridField/GridFieldFilterHeaderTest/NonDataObject.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?php | ||
|
||
namespace SilverStripe\Forms\Tests\GridField\GridFieldFilterHeaderTest; | ||
|
||
use SilverStripe\Dev\TestOnly; | ||
use SilverStripe\View\ArrayData; | ||
|
||
class NonDataObject extends ArrayData implements TestOnly | ||
{ | ||
public function summaryFields() | ||
{ | ||
return ['Title' => 'Title']; | ||
} | ||
} |