mirror of
https://github.com/openwrt/luci.git
synced 2025-12-21 23:34:34 +04:00
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:
@@ -484,7 +484,7 @@ return view.extend({
|
|||||||
o.rmempty = false;
|
o.rmempty = false;
|
||||||
o.optional = true;
|
o.optional = true;
|
||||||
o.modalonly = true;
|
o.modalonly = true;
|
||||||
o.cfgvalue = function(section_id, set_value) {
|
o.cfgvalue = function(section_id) {
|
||||||
var keylength = uci.get('acme', section_id, 'keylength');
|
var keylength = uci.get('acme', section_id, 'keylength');
|
||||||
if (keylength) {
|
if (keylength) {
|
||||||
// migrate the old keylength to a new keytype
|
// migrate the old keylength to a new keytype
|
||||||
@@ -497,7 +497,7 @@ return view.extend({
|
|||||||
default: return ''; // bad value
|
default: return ''; // bad value
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return set_value;
|
return this.super('cfgvalue', arguments);
|
||||||
};
|
};
|
||||||
o.write = function(section_id, value) {
|
o.write = function(section_id, value) {
|
||||||
// remove old keylength
|
// remove old keylength
|
||||||
|
|||||||
Reference in New Issue
Block a user