Skip to content
Snippets Groups Projects
Commit 99e74b10 authored by Matthias Schiffer's avatar Matthias Schiffer
Browse files

gluon-config-mode: fix unsetting of the contact info

parent c7d96917
No related branches found
No related tags found
No related merge requests found
......@@ -125,7 +125,7 @@ function f.handle(self, state, data)
if data._contact ~= nil then
uci:set("gluon-node-info", uci:get_first("gluon-node-info", "owner"), "contact", data._contact)
else
uci:set("gluon-node-info", uci:get_first("gluon-node-info", "owner"), "contact")
uci:delete("gluon-node-info", uci:get_first("gluon-node-info", "owner"), "contact")
end
uci:save("gluon-node-info")
uci:commit("gluon-node-info")
......
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