diff options
author | Ansuel Smith <ansuelsmth@gmail.com> | 2020-08-22 19:58:28 +0200 |
---|---|---|
committer | Ansuel Smith <ansuelsmth@gmail.com> | 2020-08-22 19:58:28 +0200 |
commit | 8aac2a339aca4efec9ef5ac4b325eda2e55ea10d (patch) | |
tree | 486e254af355a068e68431b4d64da0bd435e5b8f | |
parent | 88b9d58a44ea52e812cf0c0db5b5b6b87783bd7e (diff) |
luci-app-ddns: fix wrong service with custom selected
If custom service is selected, no service is actually set in the uci config.
Fallback to custom service if no service is detected in the config.
Fixes #4301
Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
-rw-r--r-- | applications/luci-app-ddns/htdocs/luci-static/resources/view/ddns/overview.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/applications/luci-app-ddns/htdocs/luci-static/resources/view/ddns/overview.js b/applications/luci-app-ddns/htdocs/luci-static/resources/view/ddns/overview.js index 93106db62..2ea4cd2d4 100644 --- a/applications/luci-app-ddns/htdocs/luci-static/resources/view/ddns/overview.js +++ b/applications/luci-app-ddns/htdocs/luci-static/resources/view/ddns/overview.js @@ -486,7 +486,7 @@ return L.view.extend({ o.value('-',"-- " + _("custom") + " --"); o.cfgvalue = function(section_id) { - return uci.get('ddns', section_id, 'service_name'); + return uci.get('ddns', section_id, 'service_name') || '-'; } o.write = function(section_id, formvalue) { |