Closed (fixed)
Project:
Sites content overrides
Version:
1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
1 Jun 2026 at 13:50 UTC
Updated:
4 Jul 2026 at 13:55 UTC
Jump to comment: Most recent
Two related bugs prevent site overrides from working for entity types that do not register an explicit edit form handler (e.g. taxonomy_term, which only registers a default handler).
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
valegole commentedComment #5
hydra commentedRebased this MR onto current 1.x. The branch was based on a commit before the snapshot-model refactor (f3d1a5b), so merging it as-is would have reverted that rewrite. The two fixes (form-class edit ?? default fallback, and keeping parent in #limit_validation_errors) apply cleanly to the refactored code.
Also added test coverage:
Kernel (TaxonomyOverrideTest): asserts entity types with only a default form handler get a site_override form class.
Functional (TaxonomyOverrideFormTest + a small fixture module with a content-bearing Site plugin): edits and saves a taxonomy_term override through the UI, confirming it no longer fatals in TermForm::buildEntity() and that the non-overrideable parent is preserved.
Comment #6
hydra commented