Skip to content
Snippets Groups Projects
Commit 78e676d1 authored by Kasalehlia's avatar Kasalehlia
Browse files

config-mode: fix contact info script

parent be8bfb01
Branches v2018.2.x-ffbs
No related tags found
No related merge requests found
return function(form, uci)
local pkg_i18n = i18n 'gluon-config-mode-contact-info'
local site_i18n = i18n 'gluon-site'
if uci.get("parker", "owner") == nil then
uci.set("parker", "owner", "owner")
end
local help = site_i18n._translate("gluon-config-mode:contact-help") or pkg_i18n.translate(
'Please provide your contact information here to allow others to contact '
......@@ -22,8 +18,9 @@ return function(form, uci)
o.datatype = 'minlength(1)'
o.optional = true
function o:write(data)
uci:section("parker","owner","owner")
uci:set("parker", "owner", "contact", data)
end
return {'gluon-node-info'}
return {'parker'}
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment