summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-base
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2020-02-18 12:30:35 +0100
committerGitHub <noreply@github.com>2020-02-18 12:30:35 +0100
commit8b46a680780b272b414359656500fc79f0989dba (patch)
treea3be27b81dc5bc85266635f8e9bde14059a90e77 /modules/luci-base
parentbebfe208f7ad4a5531408e56dc08ef2831219d08 (diff)
parent2d8299338e6c77fb15c457f5cf7f34dc0278db60 (diff)
Merge pull request #3646 from tano-systems/pr/luci-base-dispatcher-cbi-config
luci-base: Add missed config parameter for cbi when converting to JSON
Diffstat (limited to 'modules/luci-base')
-rw-r--r--modules/luci-base/luasrc/dispatcher.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/luci-base/luasrc/dispatcher.lua b/modules/luci-base/luasrc/dispatcher.lua
index c227b68c85..118ca221ae 100644
--- a/modules/luci-base/luasrc/dispatcher.lua
+++ b/modules/luci-base/luasrc/dispatcher.lua
@@ -193,7 +193,8 @@ local function target_to_json(target, module)
elseif target.type == "cbi" then
action = {
["type"] = "cbi",
- ["path"] = target.model
+ ["path"] = target.model,
+ ["config"] = target.config
}
elseif target.type == "form" then
action = {