"Select all" toggle missing from power outlets list #1452

Closed
opened 2025-12-29 16:32:16 +01:00 by adam · 0 comments
Owner

Originally created by @jeremystretch on GitHub (Dec 12, 2017).

Issue type

[ ] Feature request
[x] Bug report
[ ] Documentation

Environment

  • Python version: 3.5.2
  • NetBox version: 2.2.7

Description

If a PDU device has no console ports defined, the "select all" checkbox will not be displayed at the top of the power outlets list. This is due to an error in the device.html template:

{% if perms.dcim.change_poweroutlet and cs_ports|length > 1 %}

should be

{% if perms.dcim.change_poweroutlet and power_outlets|length > 1 %}
Originally created by @jeremystretch on GitHub (Dec 12, 2017). ### Issue type [ ] Feature request <!-- An enhancement of existing functionality --> [x] Bug report <!-- Unexpected or erroneous behavior --> [ ] Documentation <!-- A modification to the documentation --> ### Environment * Python version: 3.5.2 * NetBox version: 2.2.7 ### Description If a PDU device has no console ports defined, the "select all" checkbox will not be displayed at the top of the power outlets list. This is due to an error in the `device.html` template: ``` {% if perms.dcim.change_poweroutlet and cs_ports|length > 1 %} ``` should be ``` {% if perms.dcim.change_poweroutlet and power_outlets|length > 1 %} ```
adam added the type: bug label 2025-12-29 16:32:16 +01:00
adam closed this issue 2025-12-29 16:32:16 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#1452