Merge pull request #5999 from jcassette/issue-4926

luci-app-ddns: fix creation of custom service (fix #4926)
This commit is contained in:
Jo-Philipp Wich 2022-10-12 00:04:49 +02:00 committed by GitHub
commit b139f13c0b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -477,7 +477,9 @@ return view.extend({
return m.save(function() {
uci.add('ddns', 'service', section_id);
if (service_value != '-') {
uci.set('ddns', section_id, 'service_name', service_value);
}
uci.set('ddns', section_id, 'use_ipv6', ipv6_value);
}).then(L.bind(m.children[1].renderMoreOptionsModal, m.children[1], section_id));
};