Skip to content

Fixed: Field groups inherited through form extends still render with the parent form (OFBIZ-13766) - #2483

Merged
mridulpathak merged 1 commit into
apache:trunkfrom
mridulpathak:OFBIZ-13766
Oct 28, 2026
Merged

mridulpathak merged 1 commit into
apache:trunkfrom
mridulpathak:OFBIZ-13766

Conversation

@mridulpathak

Copy link
Copy Markdown
Contributor

When a form extended another, it reused the parent's FieldGroup instances, and each FieldGroup keeps the form that created it, so the child's inherited groups opened and closed the single-form wrapper with the parent form and decided whether to show a group from the parent's fields and use-when conditions. The child now copies each inherited FieldGroup for itself, keeping its id, style, title and collapsible flags, and maps the inherited field names to the copies; banners hold no form and are still shared. ModelFormTest checks that an inherited group belongs to the child and renders with it.

When a form extended another, it reused the parent's FieldGroup instances, and each FieldGroup keeps the form that created it, so the child's inherited groups opened and closed the single-form wrapper with the parent form and decided whether to show a group from the parent's fields and use-when conditions. The child now copies each inherited FieldGroup for itself, keeping its id, style, title and collapsible flags, and maps the inherited field names to the copies; banners hold no form and are still shared. A unit test checks that an inherited group belongs to the child and renders with it.
@github-actions github-actions Bot added the bug label Oct 28, 2026
@mridulpathak
mridulpathak merged commit e9dd030 into apache:trunk Oct 28, 2026
7 checks passed
@mridulpathak mridulpathak added the api-change Changes or removes a public API label Nov 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api-change Changes or removes a public API bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant