Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
jeremystretch opened this issue Dec 12, 2017 · 0 comments
Closed

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

jeremystretch opened this issue Dec 12, 2017 · 0 comments
Labels
type: bug A confirmed report of unexpected behavior in the application

Comments

@jeremystretch
Copy link
Member

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 %}
@jeremystretch jeremystretch added the type: bug A confirmed report of unexpected behavior in the application label Dec 12, 2017
@lock lock bot locked as resolved and limited conversation to collaborators Jan 17, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: bug A confirmed report of unexpected behavior in the application
Projects
None yet
Development

No branches or pull requests

1 participant