1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Fixes #9939: Fix list of next nodes for split paths under trace view

This commit is contained in:
jeremystretch
2022-08-09 11:29:42 -04:00
parent 1b88b36820
commit 602cf8c5fa
2 changed files with 4 additions and 17 deletions

View File

@@ -677,6 +677,6 @@ class CablePath(models.Model):
"""
Return all available next segments in a split cable path.
"""
rearport = path_node_to_object(self._nodes[-1])
rearports = self.path_objects[-1]
return FrontPort.objects.filter(rear_port=rearport)
return FrontPort.objects.filter(rear_port__in=rearports)