luci-app-acme: cfgvalue does not receive the set_value parameter

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>
This commit is contained in:
Tsanie Lily
2024-12-02 17:14:07 +08:00
committed by Paul Donald
parent 461d632d5c
commit f76fc97176

View 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