Problem/Motivation
Right now, search_current_language only supports the core search.node_search plugin.
There are contrib modules who also provide search page plugins.
- https://drupal.org/project/search_exclude
Saw an issue on the search_exclude project #3343993: Not compatible with search_current_language module
Steps to reproduce
Install search_exclude and configure as described on the project page.
Install search_current_language module and set multiple languages.
Install devel_generate module and create a lot of demo content of varying languages.
Run cron to ensure everything is indexed.
Attempt to use your search exclude search page, and see that your searches are not filtered by the current language.
Proposed resolution
Add configuration for enabling on any search page plugin. (Or just support all automatically)
Remaining tasks
Merge request
User interface changes
Search page plugins other than core now utilize this module's functionality.
API changes
N/A
Data model changes
Depends on implementation.
Comments
Comment #2
jmauricio commentedI will look into this as soon as i have some time
Comment #4
jmauricio commentedPushed to 1.0.x, can you test it please?
Comment #5
trackleft2Comment #6
jmauricio commented@trackleft2 any comments?
Comment #7
trackleft2I made comments on the commit https://git.drupalcode.org/project/search_current_language/-/commit/2b4c...
Comment #8
jmauricio commentedok, i answered there also.
Comment #9
trackleft2I've tested this with search exclude module and it works perfectly AFAICT. RTBC.
Comment #10
trackleft2I've added a PHPUnit Functional test in the search_exclude module to test the integration.
See: https://git.drupalcode.org/project/search_exclude/-/merge_requests/14/diffs
See test passed: https://git.drupalcode.org/issue/search_exclude-3343993/-/jobs/4521966
Comment #11
jmauricio commented1.0.2 release
Comment #12
jmauricio commented