@@ -6,6 +6,7 @@
Loading
6 6
use SilverStripe\CMS\Controllers\CMSSiteTreeFilter_Search;
7 7
use SilverStripe\CMS\Model\SiteTree;
8 8
use SilverStripe\Core\Config\Config;
9 +
use SilverStripe\Core\Convert;
9 10
use SilverStripe\Forms\DateField;
10 11
use SilverStripe\ORM\ArrayList;
11 12
use SilverStripe\ORM\DataList;
@@ -77,13 +78,19 @@
Loading
77 78
            switch ($name) {
78 79
                case 'Term':
79 80
                    $query = $query->filterAny([
80 -
                        'URLSegment:PartialMatch' => $val,
81 +
                        'URLSegment:PartialMatch' => Convert::raw2url($val),
81 82
                        'Title:PartialMatch' => $val,
82 83
                        'MenuTitle:PartialMatch' => $val,
83 84
                        'Content:PartialMatch' => $val
84 85
                        ] + $this->extraTermFilters); // NB: only modified line
85 86
                    break;
86 87
88 +
                case 'URLSegment':
89 +
                    $query = $query->filter([
90 +
                        'URLSegment:PartialMatch' => Convert::raw2url($val),
91 +
                    ]);
92 +
                    break;
93 +
87 94
                case 'LastEditedFrom':
88 95
                    $fromDate = DateField::create(null, null, $val);
89 96
                    $query = $query->filter("LastEdited:GreaterThanOrEqual", $fromDate->dataValue().' 00:00:00');
Files Complexity Coverage
src 506 60.08%
Project Totals (36 files) 506 60.08%
1717.3
10=-f0
TRAVIS_OS_NAME=linux
1716.3
10=-f0
TRAVIS_OS_NAME=linux
1723.3
10=-f0
TRAVIS_OS_NAME=linux
1
comment: false
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading