Skip to content

Commit

Permalink
form: using section_id direct
Browse files Browse the repository at this point in the history
  • Loading branch information
lisaac committed Nov 6, 2021
1 parent 4df1dc2 commit cc69faa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion luci/luci-base/htdocs/luci-static/resources/form.js
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,8 @@ var CBIMap = CBIAbstractElement.extend(/** @lends LuCI.form.Map.prototype */ {
id = 'cbid.%s.%s.%s'.format(config_name || this.config, section_id, name);

elem = this.findElement('data-field', id);
sid = elem ? id.split(/\./)[2] : null;
// sid = elem ? id.split(/\./)[2] : null;
sid = elem ? section_id : null;
inst = elem ? dom.findClassInstance(elem) : null;

return (inst instanceof CBIAbstractValue) ? [ inst, sid ] : null;
Expand Down

0 comments on commit cc69faa

Please sign in to comment.