mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-25 01:48:38 -06:00
Fixes #5063: Fix "add device" link in rack elevations for opposite side of half-depth devices
This commit is contained in:
parent
2435c177f5
commit
5bff50cade
@ -1,5 +1,13 @@
|
|||||||
# NetBox v2.9
|
# NetBox v2.9
|
||||||
|
|
||||||
|
## v2.9.3 (FUTURE)
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* [#5063](https://github.com/netbox-community/netbox/issues/5063) - Fix "add device" link in rack elevations for opposite side of half-depth devices
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
## v2.9.2 (2020-08-27)
|
## v2.9.2 (2020-08-27)
|
||||||
|
|
||||||
### Enhancements
|
### Enhancements
|
||||||
|
@ -149,7 +149,7 @@ class RackElevationSVG:
|
|||||||
unit_cursor = 0
|
unit_cursor = 0
|
||||||
for u in elevation:
|
for u in elevation:
|
||||||
o = other[unit_cursor]
|
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['device'] = o['device']
|
||||||
u['height'] = 1
|
u['height'] = 1
|
||||||
unit_cursor += u.get('height', 1)
|
unit_cursor += u.get('height', 1)
|
||||||
|
Loading…
Reference in New Issue
Block a user