summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-status/htdocs/luci-static/resources
diff options
context:
space:
mode:
authorPaul Donald <newtwen+github@gmail.com>2024-07-06 01:45:54 +0200
committerPaul Donald <newtwen+github@gmail.com>2024-07-06 01:48:31 +0200
commitcef99564086caf0aa07dcd8753e0b505504687c1 (patch)
treef3e0a77af20509a67473829e265847f9fd0327a2 /modules/luci-mod-status/htdocs/luci-static/resources
parenteb502af9084cda3fa21632f57ee03d0fd8e4e894 (diff)
luci-mod-status: Set status page "Set Static" for MAC to list type
MACs are list type in DHCP; 1 IP can have multiple MACs See https://github.com/openwrt/luci/issues/4582#issuecomment-2209390439 Closes #4582 Signed-off-by: Paul Donald <newtwen+github@gmail.com>
Diffstat (limited to 'modules/luci-mod-status/htdocs/luci-static/resources')
-rw-r--r--modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/40_dhcp.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/40_dhcp.js b/modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/40_dhcp.js
index 0894d3d4d1..19edbd3756 100644
--- a/modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/40_dhcp.js
+++ b/modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/40_dhcp.js
@@ -33,7 +33,7 @@ return baseclass.extend({
var cfg = uci.add('dhcp', 'host');
uci.set('dhcp', cfg, 'name', lease.hostname);
uci.set('dhcp', cfg, 'ip', lease.ipaddr);
- uci.set('dhcp', cfg, 'mac', lease.macaddr.toUpperCase());
+ uci.set('dhcp', cfg, 'mac', [lease.macaddr.toUpperCase()]);
return uci.save()
.then(L.bind(L.ui.changes.init, L.ui.changes))