mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-24 17:38:37 -06:00
Fixes #7294: Fix SVG rendering for cable traces ending at unoccupied front ports
This commit is contained in:
parent
6bccb6d90b
commit
38172b793b
@ -9,6 +9,7 @@
|
|||||||
|
|
||||||
### Bug Fixes
|
### Bug Fixes
|
||||||
|
|
||||||
|
* [#7294](https://github.com/netbox-community/netbox/issues/7294) - Fix SVG rendering for cable traces ending at unoccupied front ports
|
||||||
* [#7321](https://github.com/netbox-community/netbox/issues/7321) - Don't overwrite multi-select custom fields during bulk edit
|
* [#7321](https://github.com/netbox-community/netbox/issues/7321) - Don't overwrite multi-select custom fields during bulk edit
|
||||||
* [#7324](https://github.com/netbox-community/netbox/issues/7324) - Fix TypeError exception in web UI when filtering objects using single-choice filters
|
* [#7324](https://github.com/netbox-community/netbox/issues/7324) - Fix TypeError exception in web UI when filtering objects using single-choice filters
|
||||||
* [#7333](https://github.com/netbox-community/netbox/issues/7333) - Prevent inadvertent deletion of prior change records when deleting objects
|
* [#7333](https://github.com/netbox-community/netbox/issues/7333) - Prevent inadvertent deletion of prior change records when deleting objects
|
||||||
|
@ -185,11 +185,10 @@ class PathEndpoint(models.Model):
|
|||||||
|
|
||||||
# Construct the complete path
|
# Construct the complete path
|
||||||
path = [self, *self._path.get_path()]
|
path = [self, *self._path.get_path()]
|
||||||
if self._path.destination:
|
while (len(path) + 1) % 3:
|
||||||
path.append(self._path.destination)
|
# Pad to ensure we have complete three-tuples (e.g. for paths that end at a non-connected FrontPort)
|
||||||
while len(path) % 3:
|
path.append(None)
|
||||||
# Pad to ensure we have complete three-tuples (e.g. for paths that end at a RearPort)
|
path.append(self._path.destination)
|
||||||
path.insert(-1, None)
|
|
||||||
|
|
||||||
# Return the path as a list of three-tuples (A termination, cable, B termination)
|
# Return the path as a list of three-tuples (A termination, cable, B termination)
|
||||||
return list(zip(*[iter(path)] * 3))
|
return list(zip(*[iter(path)] * 3))
|
||||||
|
@ -482,7 +482,7 @@ class CableTraceSVG:
|
|||||||
)
|
)
|
||||||
parent_objects.append(parent_object)
|
parent_objects.append(parent_object)
|
||||||
|
|
||||||
else:
|
elif far_end:
|
||||||
|
|
||||||
# Attachment
|
# Attachment
|
||||||
attachment = self._draw_attachment()
|
attachment = self._draw_attachment()
|
||||||
|
Loading…
Reference in New Issue
Block a user