summaryrefslogtreecommitdiffhomepage
path: root/libs/cbi/luasrc/cbi.lua
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-09-05 15:58:19 +0000
committerSteven Barth <steven@midlink.org>2008-09-05 15:58:19 +0000
commit8af9060efd8f47966e898cd12e0515da3b097203 (patch)
tree1f871b60f9f8e896aa4fe614cea3471eec785ad7 /libs/cbi/luasrc/cbi.lua
parentb02fe4b480faed9fdea58bb346c5c839f202d9a0 (diff)
libs/cbi: Pass default values from UVL
Diffstat (limited to 'libs/cbi/luasrc/cbi.lua')
-rw-r--r--libs/cbi/luasrc/cbi.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/cbi/luasrc/cbi.lua b/libs/cbi/luasrc/cbi.lua
index fb0355e91..3a6c6d7aa 100644
--- a/libs/cbi/luasrc/cbi.lua
+++ b/libs/cbi/luasrc/cbi.lua
@@ -838,6 +838,7 @@ function AbstractValue.__init__(self, map, section, option, ...)
self.cast = (vs.type == "list") and "list" or "string"
self.title = self.title or vs.title
self.description = self.description or vs.descr
+ self.default = vs.default
if vs.depends and not self.override_dependencies then
for i, deps in ipairs(vs.depends) do