Skip to content

Don't reset cable fields on add/edit form when device is added #17105

@arthanson

Description

@arthanson

NetBox version

v4.0.8

Feature type

Change to existing functionality

Proposed functionality

From fix in #17093 - That PR allows entering of multi-termination cables, but there is still an issue when you add a new device it will reset the child field which is an annoyance.

Code that does the reset is at: https://github.com/netbox-community/netbox/blob/develop/netbox/project-static/src/select/classes/dynamicTomSelect.ts#L347

Use case

If you are switching devices the child field needs to be reset, but if you are just adding a new device then the child field should not have to be reset.

Database changes

None

External dependencies

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    complexity: mediumRequires a substantial but not unusual amount of effort to implementnetboxpending closureRequires immediate attention to avoid being closed for inactivitystatus: needs ownerThis issue is tentatively accepted pending a volunteer committed to its implementationtype: featureIntroduction of new functionality to the application

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions