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

Fixes #5063: Fix "add device" link in rack elevations for opposite side of half-depth devices

This commit is contained in:
Jeremy Stretch
2020-08-31 15:26:00 -04:00
parent 2435c177f5
commit 5bff50cade
2 changed files with 9 additions and 1 deletions

View File

@@ -149,7 +149,7 @@ class RackElevationSVG:
unit_cursor = 0
for u in elevation:
o = other[unit_cursor]
if not u['device'] and o['device']:
if not u['device'] and o['device'] and o['device'].device_type.is_full_depth:
u['device'] = o['device']
u['height'] = 1
unit_cursor += u.get('height', 1)