luci-app-acme: `cfgvalue` does not receive the `set_value` parameter
authorTsanie Lily <tsorgy@gmail.com>
Mon, 2 Dec 2024 09:14:07 +0000 (17:14 +0800)
committerPaul Donald <newtwen+github@gmail.com>
Thu, 5 Dec 2024 23:50:00 +0000 (00:50 +0100)
when it is called in `CBIValue.render`.

Signed-off-by: Tsanie Lila <tsorgy@gmail.com>
(squashed + amended commit message)
Closes #7443
Signed-off-by: Paul Donald <newtwen+github@gmail.com>
applications/luci-app-acme/htdocs/luci-static/resources/view/acme.js

index 201a7ecead67258e7542fbeef25b93ec84858b08..d9487626097b893aaf24490fcff185a773bc236e 100644 (file)
@@ -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