Skip to content

Conversation

@pheus
Copy link
Contributor

@pheus pheus commented Sep 5, 2025

Fixes: #20252

Summary

Remove the generic AddObject action from ObjectChildrenView.
This prevents duplicate “Add” buttons on child object list views and keeps only the contextual add action (e.g., Add Prefix).
No API/DB changes; plugins that already register a contextual add action are unaffected.

Registering the generic AddObject action on ObjectChildrenView results
in duplicate "Add" buttons alongside the context‑specific add action
(e.g., "Add Prefix"). The generic action also fails to pre-populate the
parent context.

Remove the generic registration so child lists show only the contextual
add action provided by core views and plugins.

Fixes netbox-community#20252
@jnovinger jnovinger requested review from a team and jnovinger and removed request for a team September 5, 2025 19:08
@jnovinger jnovinger merged commit f04a2b9 into netbox-community:main Sep 5, 2025
7 checks passed
@pheus pheus deleted the 20252-remove-add-action-from-objectchildrenview branch September 5, 2025 20:40
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 6, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Duplicate “Add” buttons on child object list views

2 participants