diff options
-rw-r--r-- | modules/luci-base/htdocs/luci-static/resources/form.js | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/modules/luci-base/htdocs/luci-static/resources/form.js b/modules/luci-base/htdocs/luci-static/resources/form.js index 4edfc7e135..317b49fdfe 100644 --- a/modules/luci-base/htdocs/luci-static/resources/form.js +++ b/modules/luci-base/htdocs/luci-static/resources/form.js @@ -3213,10 +3213,13 @@ var CBITableSection = CBITypedSection.extend(/** @lends LuCI.form.TableSection.p var m; - if (parent instanceof CBIJSONMap) - m = new CBIJSONMap(parent.data.data, null, null); - else + if (parent instanceof CBIJSONMap) { + m = new CBIJSONMap(null, null, null); + m.data = parent.data; + } + else { m = new CBIMap(parent.config, null, null); + } var s = m.section(CBINamedSection, section_id, this.sectiontype); |