From ff775a69f7aab1316404e139718b0526e79b6f1f Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Thu, 6 Jun 2019 21:04:04 +0200 Subject: [PATCH] luci-base: form.js: trigger validation before saving cbi map Signed-off-by: Jo-Philipp Wich --- modules/luci-base/htdocs/luci-static/resources/form.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/luci-base/htdocs/luci-static/resources/form.js b/modules/luci-base/htdocs/luci-static/resources/form.js index c4f3b8aece..61518b749d 100644 --- a/modules/luci-base/htdocs/luci-static/resources/form.js +++ b/modules/luci-base/htdocs/luci-static/resources/form.js @@ -116,6 +116,8 @@ var CBIMap = CBINode.extend({ }, save: function() { + this.checkDepends(); + return this.parse() .then(uci.save.bind(uci)) .then(this.load.bind(this)) -- 2.30.2