projects
/
project
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b02fe4b
)
libs/cbi: Pass default values from UVL
author
Steven Barth
<steven@midlink.org>
Fri, 5 Sep 2008 15:58:19 +0000
(15:58 +0000)
committer
Steven Barth
<steven@midlink.org>
Fri, 5 Sep 2008 15:58:19 +0000
(15:58 +0000)
libs/cbi/luasrc/cbi.lua
patch
|
blob
|
history
diff --git
a/libs/cbi/luasrc/cbi.lua
b/libs/cbi/luasrc/cbi.lua
index fb0355e91f5cfb4595f7bec6528e44f5f785b895..3a6c6d7aa36f73e6b76f9a2c6888a0093e8e49ab 100644
(file)
--- 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