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>
This commit is contained in:
parent
88b9d58a44
commit
8aac2a339a
1 changed files with 1 additions and 1 deletions
|
@ -486,7 +486,7 @@ return L.view.extend({
|
||||||
o.value('-',"-- " + _("custom") + " --");
|
o.value('-',"-- " + _("custom") + " --");
|
||||||
|
|
||||||
o.cfgvalue = function(section_id) {
|
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) {
|
o.write = function(section_id, formvalue) {
|
||||||
|
|
Loading…
Reference in a new issue