Skip to content

Comments

Fixes #21429: Add Cable cloning and fix "Create & Add Another" to preserve Termination Types#21453

Open
pheus wants to merge 1 commit intomainfrom
21429-cable-create-add-another-does-not-carry-over-termination
Open

Fixes #21429: Add Cable cloning and fix "Create & Add Another" to preserve Termination Types#21453
pheus wants to merge 1 commit intomainfrom
21429-cable-create-add-another-does-not-carry-over-termination

Conversation

@pheus
Copy link
Contributor

@pheus pheus commented Feb 17, 2026

Fixes: #21429

This PR fixes the “Create & Add Another” workflow for cables by ensuring the selected termination types are preserved.

To do this, it extends Cable.clone() to include the form-only fields required by get_cable_form() (termination type and the relevant parent selector fields for each end). This makes both “Clone” and “Create & Add Another” behave consistently, while intentionally not cloning the actual terminations (since those endpoints are already occupied).

I’ve added a small note in get_cable_form() to document that Cable.clone() mirrors its parent selector mapping to help keep these in sync going forward.
Thanks for reviewing!

@pheus pheus requested review from a team and bctiemann and removed request for a team February 17, 2026 14:45
Introduce `clone()` method for the Cable model to enable cloning
its attributes, including termination type and parent selectors.
Updates mappings to align with CableForm workflows, supporting
"Clone" and "Create & Add Another" actions.

Fixes #21429
@pheus pheus force-pushed the 21429-cable-create-add-another-does-not-carry-over-termination branch from 7172db3 to 951d856 Compare February 17, 2026 17:30
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.

Cable "Create & Add Another" does not carry over termination types

1 participant