[PR #19479] [MERGED] Fixes #19465: Fix ability to clear assigned prefix scope in UI #15656

Closed
opened 2025-12-30 00:23:15 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/19479
Author: @jeremystretch
Created: 5/13/2025
Status: Merged
Merged: 5/13/2025
Merged by: @jnovinger

Base: mainHead: 19465-clear-prefix-scope


📝 Commits (1)

  • 967e374 Fixes #19465: Fix ability to clear assigned prefix scope in UI

📊 Changes

1 file changed (+4 additions, -0 deletions)

View changed files

📝 netbox/dcim/forms/mixins.py (+4 -0)

📄 Description

Fixes: #19465

When editing an existing instance, its scope (if set) is passed as initial data. Because the scope field is disabled in the UI form when no scope type is selected, its value does not get nullified when submitting the form.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbox-community/netbox/pull/19479 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 5/13/2025 **Status:** ✅ Merged **Merged:** 5/13/2025 **Merged by:** [@jnovinger](https://github.com/jnovinger) **Base:** `main` ← **Head:** `19465-clear-prefix-scope` --- ### 📝 Commits (1) - [`967e374`](https://github.com/netbox-community/netbox/commit/967e374d10101c4da8daffe68d5a0a8c1742dec7) Fixes #19465: Fix ability to clear assigned prefix scope in UI ### 📊 Changes **1 file changed** (+4 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `netbox/dcim/forms/mixins.py` (+4 -0) </details> ### 📄 Description ### Fixes: #19465 When editing an existing instance, its scope (if set) is passed as initial data. Because the `scope` field is disabled in the UI form when no scope type is selected, its value does not get nullified when submitting the form. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-30 00:23:15 +01:00
adam closed this issue 2025-12-30 00:23:15 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#15656