silverstripe-cms
silverstripe-cms copied to clipboard
SiteTree Search does not display expected results on multiple searches using filters.
Scenario -
- Created a 'Redirector-1' and saved to 'Draft'.
- Created another 'Redirector-2' and 'Published' it.
- Utilized the 'SiteTree Search' to show 'Redirector - Page Types'. Both 'Redirector 1 & 2' are successfully shown.
- Attempted another 'Search' to filter only 'Published Pages'.
- Wrong Search Results are displayed.
Expected - Only 'Redirector-2' should be displayed. Note - Pics attached for reference
Version Tested - 4.3 Demo Version
Seems like the filter is using OR instead of AND condition.
I can confirm that this is still an issue in 4.4 and on that it can also be seen on the demo site: https://demo.silverstripe.org/admin/pages/?q%5BFilterClass%5D=SilverStripe%5CCMS%5CControllers%5CCMSSiteTreeFilter_PublishedPages&q%5BClassName%5D=SilverStripe%5CErrorPage%5CErrorPage End-users expect this to be an AND AND search .... e.g. SHow me Product Pages that are Published .... rather than ... show me Product Pages or Published Pages.
Just found this issue by accident, I think this was solved long ago by #2540, should be closed.