libs/cbi: fix some logic errors in firewall zone picker widget
This commit is contained in:
parent
c70edf0f94
commit
5c4cd0c4d6
1 changed files with 2 additions and 2 deletions
|
@ -51,9 +51,8 @@ $Id$
|
||||||
local zempty = true
|
local zempty = true
|
||||||
for _, net in ipairs(zone:get_networks()) do
|
for _, net in ipairs(zone:get_networks()) do
|
||||||
net = nwm:get_network(net)
|
net = nwm:get_network(net)
|
||||||
zempty = false
|
|
||||||
if net then
|
if net then
|
||||||
local nempty = true
|
zempty = false
|
||||||
%>
|
%>
|
||||||
|
|
||||||
<%- if net:name() == self.network then -%>
|
<%- if net:name() == self.network then -%>
|
||||||
|
@ -62,6 +61,7 @@ $Id$
|
||||||
<span style="background-color:#FFFFFF; border:1px solid #CCCCCC; padding:2px"><%=net:name()%>:
|
<span style="background-color:#FFFFFF; border:1px solid #CCCCCC; padding:2px"><%=net:name()%>:
|
||||||
<%- end -%>
|
<%- end -%>
|
||||||
<%
|
<%
|
||||||
|
local nempty = true
|
||||||
for _, iface in ipairs(net and net:get_interfaces() or {}) do
|
for _, iface in ipairs(net and net:get_interfaces() or {}) do
|
||||||
if not iface:is_bridgeport() then
|
if not iface:is_bridgeport() then
|
||||||
nempty = false
|
nempty = false
|
||||||
|
|
Loading…
Reference in a new issue