summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-base/luasrc/view/cbi/lvalue.htm
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2019-07-19 17:19:24 +0200
committerJo-Philipp Wich <jo@mein.io>2019-07-19 17:28:36 +0200
commit5510bdae399c131f8911f4d4b39ec6832252c161 (patch)
treec9f1125f59572326b2d7eaffff38a60d8291fc18 /modules/luci-base/luasrc/view/cbi/lvalue.htm
parent9c736c83924194979db88145780c018607f11cfb (diff)
luci-base: render default values for all server side cbi map widgets
Fixes: 9c7eb1dec ("luci-base: switch from server side to client side widget markup") Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-base/luasrc/view/cbi/lvalue.htm')
-rw-r--r--modules/luci-base/luasrc/view/cbi/lvalue.htm2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/luci-base/luasrc/view/cbi/lvalue.htm b/modules/luci-base/luasrc/view/cbi/lvalue.htm
index e07648835..920b5e9f9 100644
--- a/modules/luci-base/luasrc/view/cbi/lvalue.htm
+++ b/modules/luci-base/luasrc/view/cbi/lvalue.htm
@@ -1,6 +1,6 @@
<%+cbi/valueheader%>
<div<%=attr("data-ui-widget", luci.util.serialize_json({
- "Select", self:cfgvalue(section), self:choices(), {
+ "Select", self:cfgvalue(section) or self.default, self:choices(), {
id = cbid,
name = cbid,
size = self.size,