From e523006ec32a5c8cede592558c494de662883410 Mon Sep 17 00:00:00 2001 From: jeremystretch Date: Wed, 17 Aug 2022 10:39:30 -0400 Subject: [PATCH] Fixes #9758: Display parent object of connected termination --- docs/release-notes/version-3.3.md | 1 + netbox/dcim/tables/template_code.py | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/docs/release-notes/version-3.3.md b/docs/release-notes/version-3.3.md index 9ec4eb9b5..3c3121c66 100644 --- a/docs/release-notes/version-3.3.md +++ b/docs/release-notes/version-3.3.md @@ -99,6 +99,7 @@ Custom field UI visibility has no impact on API operation. ### Bug Fixes (from Beta2) +* [#9758](https://github.com/netbox-community/netbox/issues/9758) - Display parent object of connected termination * [#9900](https://github.com/netbox-community/netbox/issues/9900) - Pre-populate site & rack fields for cable connection form * [#9938](https://github.com/netbox-community/netbox/issues/9938) - Exclude virtual interfaces from terminations list when connecting a cable * [#9939](https://github.com/netbox-community/netbox/issues/9939) - Fix list of next nodes for split paths under trace view diff --git a/netbox/dcim/tables/template_code.py b/netbox/dcim/tables/template_code.py index 6e9ed6672..3403f9392 100644 --- a/netbox/dcim/tables/template_code.py +++ b/netbox/dcim/tables/template_code.py @@ -1,5 +1,9 @@ LINKTERMINATION = """ {% for termination in value %} + {% if termination.parent_object %} + {{ termination.parent_object }} + + {% endif %} {{ termination }}{% if not forloop.last %},{% endif %} {% empty %} {{ ''|placeholder }}