From cef99564086caf0aa07dcd8753e0b505504687c1 Mon Sep 17 00:00:00 2001 From: Paul Donald Date: Sat, 6 Jul 2024 01:45:54 +0200 Subject: 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 --- .../htdocs/luci-static/resources/view/status/include/40_dhcp.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/luci-mod-status/htdocs/luci-static/resources') 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)) -- cgit v1.2.3