You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Advanced Search > List of available Filters returns other options than the selected ones from the Settings > Results Scope for Content Type(s) and
This is due to how the code matches the scopes,
Currently, it will look for the selected scope, and will check if the name of the other scopes is contained within it. In this example it checks if "Blog Subscribe" contains "Blog" which returns true and therefore it ends up showing that scope as well which is not the expected behavior.
Description of bug
Advanced Search > List of available Filters returns other options than the selected ones from the Settings > Results Scope for Content Type(s) and
This is due to how the code matches the scopes,
Currently, it will look for the selected scope, and will check if the name of the other scopes is contained within it. In this example it checks if "Blog Subscribe" contains "Blog" which returns true and therefore it ends up showing that scope as well which is not the expected behavior.
The line with doing the 'contains' match is
https://github.com/dnnsoftware/Dnn.Platform/blob/development/DNN%20Platform/Website/DesktopModules/Admin/SearchResults/SearchResults.ascx.cs#L232
Steps to reproduce
List the steps to reproduce the behavior:
Current result
It is showing 2 different Scopes "Blog" and "Blog Roster" even though only one scope has been selected.
Expected result
It should only show the scopes that were selected in the settings.
Screenshots
https://drive.google.com/file/d/1QUWOku7j7fjJMusI24WS9BKNbe0GoGvL/view
Error log
Additional context
Affected version
Affected browser
The text was updated successfully, but these errors were encountered: