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>
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
default: return ''; // bad value
}
}
- return set_value;
+ return this.super('cfgvalue', arguments);
};
o.write = function(section_id, value) {
// remove old keylength