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>
Wed, 1 Feb 2017 23:40:43 +0000 (00:40 +0100)
commit5f80115b2c1d4339a9d1923d82cfac64ae553a69
tree99c7152ba1e96a9af2fd1dcc6bcb1a57a4dd7e72
parent46fd88ec6c4ce7da611c45cbe2b3a0791d6c4e06
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