diff --git a/package/gluon-config-mode-contact-info/luasrc/lib/gluon/config-mode/wizard/0500-contact-info.lua b/package/gluon-config-mode-contact-info/luasrc/lib/gluon/config-mode/wizard/0500-contact-info.lua index 1ef5deaf..300c46fa 100644 --- a/package/gluon-config-mode-contact-info/luasrc/lib/gluon/config-mode/wizard/0500-contact-info.lua +++ b/package/gluon-config-mode-contact-info/luasrc/lib/gluon/config-mode/wizard/0500-contact-info.lua @@ -16,11 +16,7 @@ return function(form, uci) -- without a minimal length, an empty string will be accepted even with "optional = false" o.datatype = "minlength(1)" function o:write(data) - if data then - uci:set("gluon-node-info", owner, "contact", data) - else - uci:delete("gluon-node-info", owner, "contact") - end + uci:set("gluon-node-info", owner, "contact", data) end return {'gluon-node-info'}