luci-base: fix cbi mvalue templates
authorJo-Philipp Wich <jo@mein.io>
Sun, 7 Jul 2019 19:13:02 +0000 (21:13 +0200)
committerJo-Philipp Wich <jo@mein.io>
Sun, 7 Jul 2019 19:13:02 +0000 (21:13 +0200)
Fixes: 9c7eb1dec ("luci-base: switch from server side to client side widget markup")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/luasrc/view/cbi/mvalue.htm

index 4974a4ed288cda33d3127e79a887565614861cf3..d1fb8036783a5f41ce06785676ff4fde5a554d5d 100644 (file)
@@ -1,6 +1,6 @@
 <%+cbi/valueheader%>
 <div<%=attr("data-ui-widget", luci.util.serialize_json({
-       "Select", self:cfgvalues(section), self:choices(), {
+       "Select", self:cfgvalue(section) or self.default, self:choices(), {
                id = cbid,
                name = cbid,
                size = self.size,