- π¬π§United Kingdom altcom_neil
Hi, thanks for the work so far on this.
We have multiple sites built on the same systems but with some custom user roles. Comparing changes to views between sites has always thrown up the differences in these sections even though none have actually made any changes at all.
The latest patch didn't apply for me (D10.3.2), so I have created just a patch for the \Drupal\views\Plugin\views\filter\FilterPluginBase::validateExposeForm method from the latest D11 code.
This works stripping all of the redundant roles from the config.
- π¬π§United Kingdom altcom_neil
Sorry, correct patch file for 10.3+/11.x
- First commit to issue fork.
- Merge request !9830Resolve #2997393 "Filter out non-selected roles for the remember_roles setting in views" β (Open) created by tobiasb
- π©πͺGermany tobiasb Berlin
I move the patch into a MR and fixes the rejected changes + typehints.
The post update uses now core/modules/views/src/ViewsConfigUpdater.php and moves the test into \Drupal\Tests\views\Functional\Plugin\FilterTest, because there are also other test for \Drupal\views\Plugin\views\filter\FilterPluginBase.
- πΊπΈUnited States smustgrave
Will probably need upgrade path tests.
Looks good!