From: Tsanie Lily Date: Mon, 2 Dec 2024 09:14:07 +0000 (+0800) Subject: luci-app-acme: `cfgvalue` does not receive the `set_value` parameter X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=f76fc971763d500bede5bfb4546540d79c5788f3;p=project%2Fluci.git luci-app-acme: `cfgvalue` does not receive the `set_value` parameter when it is called in `CBIValue.render`. Signed-off-by: Tsanie Lila (squashed + amended commit message) Closes #7443 Signed-off-by: Paul Donald --- diff --git a/applications/luci-app-acme/htdocs/luci-static/resources/view/acme.js b/applications/luci-app-acme/htdocs/luci-static/resources/view/acme.js index 201a7ecead..d948762609 100644 --- a/applications/luci-app-acme/htdocs/luci-static/resources/view/acme.js +++ b/applications/luci-app-acme/htdocs/luci-static/resources/view/acme.js @@ -484,7 +484,7 @@ return view.extend({ o.rmempty = false; o.optional = true; o.modalonly = true; - o.cfgvalue = function(section_id, set_value) { + o.cfgvalue = function(section_id) { var keylength = uci.get('acme', section_id, 'keylength'); if (keylength) { // migrate the old keylength to a new keytype @@ -497,7 +497,7 @@ return view.extend({ default: return ''; // bad value } } - return set_value; + return this.super('cfgvalue', arguments); }; o.write = function(section_id, value) { // remove old keylength