From 8aac2a339aca4efec9ef5ac4b325eda2e55ea10d Mon Sep 17 00:00:00 2001 From: Ansuel Smith Date: Sat, 22 Aug 2020 19:58:28 +0200 Subject: 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 --- .../luci-app-ddns/htdocs/luci-static/resources/view/ddns/overview.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'applications/luci-app-ddns') 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) { -- cgit v1.2.3