Merge pull request #4380 from Ansuel/ddns-fix-pt2

luci-app-ddns: fix wrong service with custom selected
This commit is contained in:
Jo-Philipp Wich 2020-08-23 18:32:38 +02:00 committed by GitHub
commit f555ab56a8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -489,7 +489,7 @@ return 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) {