luci-mod-network: fix saving bridge VLANs without member ports
Calling `uci.set()` with an empty array yields an invalid argument error, make sure to pass `null` instead in this case. Signed-off-by: Jo-Philipp Wich <jo@mein.io> (cherry picked from commit f1f566bfe2a6b0960ba95a5ea05ca4353b766867)
This commit is contained in:
parent
ae00d0f712
commit
0ededb9bcc
@ -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() {}
|
remove: function() {}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user