From: Jo-Philipp Wich Date: Sat, 21 Sep 2019 16:43:42 +0000 (+0200) Subject: luci-mod-system: mounts.js: implicitely create globals section X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=e39ab8725531bd390d57a037823b8546f68ce5be;p=openwrt-luci.git luci-mod-system: mounts.js: implicitely create globals section Signed-off-by: Jo-Philipp Wich --- diff --git a/modules/luci-mod-system/htdocs/luci-static/resources/view/system/mounts.js b/modules/luci-mod-system/htdocs/luci-static/resources/view/system/mounts.js index b9028b20e7..dfc17ee732 100644 --- a/modules/luci-mod-system/htdocs/luci-static/resources/view/system/mounts.js +++ b/modules/luci-mod-system/htdocs/luci-static/resources/view/system/mounts.js @@ -161,6 +161,9 @@ return L.view.extend({ btrfs: results[6] }; + if (!uci.sections('fstab', 'global').length) + uci.add('fstab', 'global'); + m = new form.Map('fstab', _('Mount Points')); s = m.section(form.TypedSection, 'global', _('Global Settings'));