[PR #9766] [MERGED] Fixes #9765 - Fix "Total segment" count on trace view #13518

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/9766
Author: @kkthxbye-code
Created: 7/18/2022
Status: Merged
Merged: 7/18/2022
Merged by: @jeremystretch

Base: featureHead: fix-9765


📝 Commits (1)

  • 8a2276e Use segment_count for segment count on trace view

📊 Changes

1 file changed (+35 additions, -37 deletions)

View changed files

📝 netbox/templates/dcim/cable_trace.html (+35 -37)

📄 Description

Fixes: #9765

Removes unused traced_path context. path.origin does not exist anymore, so segment count cannot be accessed that way. Use segment_count directly on the path instead.


🔄 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/9766 **Author:** [@kkthxbye-code](https://github.com/kkthxbye-code) **Created:** 7/18/2022 **Status:** ✅ Merged **Merged:** 7/18/2022 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `feature` ← **Head:** `fix-9765` --- ### 📝 Commits (1) - [`8a2276e`](https://github.com/netbox-community/netbox/commit/8a2276e79136d8bac7b212ce1ad7f014ffb0de41) Use segment_count for segment count on trace view ### 📊 Changes **1 file changed** (+35 additions, -37 deletions) <details> <summary>View changed files</summary> 📝 `netbox/templates/dcim/cable_trace.html` (+35 -37) </details> ### 📄 Description ### Fixes: #9765 Removes unused traced_path context. `path.origin` does not exist anymore, so segment count cannot be accessed that way. Use segment_count directly on the path instead. --- <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:19:19 +01:00
adam closed this issue 2025-12-29 23:19: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#13518