summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--modules/luci-mod-network/htdocs/luci-static/resources/tools/network.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/luci-mod-network/htdocs/luci-static/resources/tools/network.js b/modules/luci-mod-network/htdocs/luci-static/resources/tools/network.js
index d13299777f..6248f7bf77 100644
--- a/modules/luci-mod-network/htdocs/luci-static/resources/tools/network.js
+++ b/modules/luci-mod-network/htdocs/luci-static/resources/tools/network.js
@@ -304,7 +304,7 @@ var cbiTagValue = form.Value.extend({
}
}
- uci.set('network', section_id, 'ports', ports);
+ uci.set('network', section_id, 'ports', ports.length ? ports : null);
},
remove: function() {}