Parcourir la source

Fixes #1766: Fixed display of "select all" button on device power outlets list

Jeremy Stretch il y a 7 ans
Parent
commit
da3935ff36
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      netbox/templates/dcim/device.html

+ 1 - 1
netbox/templates/dcim/device.html

@@ -535,7 +535,7 @@
                 <div class="panel-heading">
                     <strong>Power Outlets</strong>
                     <div class="pull-right">
-                        {% if perms.dcim.change_poweroutlet and cs_ports|length > 1 %}
+                        {% if perms.dcim.change_poweroutlet and power_outlets|length > 1 %}
                             <button class="btn btn-default btn-xs toggle">
                                 <span class="glyphicon glyphicon-unchecked" aria-hidden="true"></span> Select all
                             </button>