[PR #13634] [MERGED] Fixes #13622: Fix exception when viewing current config and no revisions have been created #14228

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/13634
Author: @jeremystretch
Created: 8/31/2023
Status: Merged
Merged: 8/31/2023
Merged by: @jeremystretch

Base: developHead: 13622-fix-config-view


📝 Commits (1)

  • 1f6138d Fixes #13622: Fix exception when viewing current config and no revisions have been created

📊 Changes

3 files changed (+21 additions, -3 deletions)

View changed files

📝 netbox/core/views.py (+7 -1)
📝 netbox/extras/models/models.py (+4 -0)
📝 netbox/templates/extras/configrevision.html (+10 -2)

📄 Description

Fixes: #13622

If no ConfigRevision has been created yet, instantiate a dummy to display the default configuration parameters.


🔄 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/13634 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 8/31/2023 **Status:** ✅ Merged **Merged:** 8/31/2023 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop` ← **Head:** `13622-fix-config-view` --- ### 📝 Commits (1) - [`1f6138d`](https://github.com/netbox-community/netbox/commit/1f6138dc4e4210eade88a9745070c7d2a7231e87) Fixes #13622: Fix exception when viewing current config and no revisions have been created ### 📊 Changes **3 files changed** (+21 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `netbox/core/views.py` (+7 -1) 📝 `netbox/extras/models/models.py` (+4 -0) 📝 `netbox/templates/extras/configrevision.html` (+10 -2) </details> ### 📄 Description ### Fixes: #13622 If no ConfigRevision has been created yet, instantiate a dummy to display the default configuration parameters. --- <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-29 23:23:18 +01:00
adam closed this issue 2025-12-29 23:23:18 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#14228