Skip to content

fix(harmonia): composition-parent FK never renders as a detail-form input (#6513) - #6514

Merged
delchev merged 1 commit into
masterfrom
fix/detail-form-parent-fk
Aug 4, 2026
Merged

fix(harmonia): composition-parent FK never renders as a detail-form input (#6513)#6514
delchev merged 1 commit into
masterfrom
fix/detail-form-parent-fk

Conversation

@delchev

@delchev delchev commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Closes #6513.

The generated detail create/edit form (e.g. a company's bank-account dialog, #6509) still rendered the composition-parent FK ("Company") as an editable dropdown. The parent is never the user's choice on a detail form — the master's panel presets it via the create query param and an edit round-trips the stored value — and every other master-detail surface already hides the master FK (the document items dialog and the detail tables exclude it by construction).

One-line template fix: the editable grid in manage/form-view.html.template skips properties with relationshipType="COMPOSITION", alongside the existing exclusions (PK, read-only/system, DOCUMENT_STATUS, audit). The value stays in the form model — preset on create, loaded on edit — so binding and validation are unchanged; only the input is gone. A dropdown options fetch for it no longer matters visually and is left untouched (harmless).

IntentEngineIT locks the emission: the generated OrderItem-form.html contains no f_Order control while f_Quantity still renders.

Template-only — reaches deployed apps on the next regeneration.

🤖 Generated with Claude Code

…rm input (#6513)

A detail's create/edit form (a company's bank-account dialog) still
offered the parent as an editable dropdown. The parent is never the
user's choice there: the master's panel presets the FK via the create
query param and an edit round-trips it - exactly like every other
master-detail surface, which already hides the master FK (items dialog,
detail tables). Offering it invited re-parenting by accident and was
redundant inside the dialog.

The generated form view now excludes relationshipType=COMPOSITION
properties from the editable grid; the value stays in the form model
(preset on create, loaded on edit) like the other hidden system fields.
IntentEngineIT locks it: the generated detail form renders no parent
input while the detail's own fields stay editable.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@delchev
delchev merged commit a563b10 into master Aug 4, 2026
10 checks passed
@delchev
delchev deleted the fix/detail-form-parent-fk branch August 4, 2026 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Detail form still offers the composition-parent FK as an editable dropdown

1 participant