luci-mod-admin-full: fixes for usbport LED triggers
authorJo-Philipp Wich <jo@mein.io>
Mon, 30 Jan 2017 14:50:08 +0000 (15:50 +0100)
committerJo-Philipp Wich <jo@mein.io>
Mon, 30 Jan 2017 14:50:45 +0000 (15:50 +0100)
commit926935f83170e38452a5191d13aa8b04021606ff
tree1c3776ef0a65d16368d5df85c0cc5ceacdeb1af4
parent7c744309c51295abba53bfa56319f314df9040f7
luci-mod-admin-full: fixes for usbport LED triggers

The previous commit erroneously used "ports" instead of "port" as name for the
option widget, causing wrong uci values to be written.

Also work around some cbi idiosyncrasies regarding MultiValue widgets which
prevented rendering the correct initial selection state.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-mod-admin-full/luasrc/model/cbi/admin_system/leds.lua