projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
modules/admin-full: Fixes for rdate config
[project/luci.git]
/
modules
/
admin-full
/
luasrc
/
model
/
cbi
/
admin_system
/
system.lua
diff --git
a/modules/admin-full/luasrc/model/cbi/admin_system/system.lua
b/modules/admin-full/luasrc/model/cbi/admin_system/system.lua
index
f6826c0
..
d3bec7c
100644
(file)
--- a/
modules/admin-full/luasrc/model/cbi/admin_system/system.lua
+++ b/
modules/admin-full/luasrc/model/cbi/admin_system/system.lua
@@
-189,10
+189,12
@@
if has_rdate then
s.anonymous = true
s.addremove = true
s.template = "cbi/tblsection"
s.anonymous = true
s.addremove = true
s.template = "cbi/tblsection"
- s.rmempty = true
- s:option(Value, "hostname", translate("Name"))
+ h = s:option(Value, "hostname", translate("Name"))
+ h.rmempty = true
+ h.datatype = host
i = s:option(ListValue, "interface", translate("Interface"))
i = s:option(ListValue, "interface", translate("Interface"))
+ i.rmempty = true
i:value("", translate("Default"))
m3.uci:foreach("network", "interface",
function (section)
i:value("", translate("Default"))
m3.uci:foreach("network", "interface",
function (section)