- Issue created by @ts.ag
- πΊπΈUnited States justcaldwell Austin, Texas
Thanks for raising this!
Some steps to reproduce would be helpful here. Also, do we need an update/post update hook to clean up possible improperly stored values?
Patch from #2 doesn't work if the overridden permissions are hidden from display based on the chosen filters, the config still gets polluted with the hidden overriden values on save.
Will have to dig deeper, I'll probably take another whack at it this week.
- πΊπΈUnited States justcaldwell Austin, Texas
Thanks for the update. Setting to NW.
Added a
hidden_permissions
form element with an array value for all hidden permission values, and extendedsubmitForm()
to merge these with the submitted values and save all permissions.Also updated issue summary.
I'm not sure an update hook is needed, it might in fact muddy waters depending on use cases.
Something to keep an eye on: there's work being done for Drupal core 11.x to address the general issue of saving overridden config entities - https://www.drupal.org/project/drupal/issues/2910353 π Prevent saving config entities when configuration overrides are applied Needs work