[PR #19527] [MERGED] Fixes #19496: Page error on config render with empty output #15670

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/19527
Author: @Omripresent
Created: 5/16/2025
Status: Merged
Merged: 5/22/2025
Merged by: @bctiemann

Base: mainHead: fix-19496


📝 Commits (1)

  • e6d364b Initilize error_message to empty string

📊 Changes

2 files changed (+6 additions, -2 deletions)

View changed files

📝 netbox/extras/views.py (+1 -1)
📝 netbox/templates/extras/object_render_config.html (+5 -1)

📄 Description

Fixes: #19496

Update template branching to account for successful but empty template render output
Initialize error_message variable to empty string in case of other uses in template with {% trans error_message %} call


🔄 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/19527 **Author:** [@Omripresent](https://github.com/Omripresent) **Created:** 5/16/2025 **Status:** ✅ Merged **Merged:** 5/22/2025 **Merged by:** [@bctiemann](https://github.com/bctiemann) **Base:** `main` ← **Head:** `fix-19496` --- ### 📝 Commits (1) - [`e6d364b`](https://github.com/netbox-community/netbox/commit/e6d364b250bbdd66adb0f567b39721e346f1ece0) Initilize error_message to empty string ### 📊 Changes **2 files changed** (+6 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `netbox/extras/views.py` (+1 -1) 📝 `netbox/templates/extras/object_render_config.html` (+5 -1) </details> ### 📄 Description <!-- Thank you for your interest in contributing to NetBox! Please note that our contribution policy requires that a feature request or bug report be approved and assigned prior to opening a pull request. This helps avoid waste time and effort on a proposed change that we might not be able to accept. IF YOUR PULL REQUEST DOES NOT REFERENCE AN ISSUE WHICH HAS BEEN ASSIGNED TO YOU, IT WILL BE CLOSED AUTOMATICALLY. Please specify your assigned issue number on the line below. --> ### Fixes: #19496 <!-- Please include a summary of the proposed changes below. --> Update template branching to account for successful but empty template render output Initialize error_message variable to empty string in case of other uses in template with `{% trans error_message %}` call --- <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:19 +01:00
adam closed this issue 2025-12-30 00:23:19 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#15670