projects
/
oweals
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
luci-base: Add missed config parameter for cbi when converting to JSON
[oweals/luci.git]
/
modules
/
luci-base
/
luasrc
/
dispatcher.lua
diff --git
a/modules/luci-base/luasrc/dispatcher.lua
b/modules/luci-base/luasrc/dispatcher.lua
index c227b68c858d00731a85010a9a5a8db7a5c7fa7b..118ca221aee66ff82f4e04041a7de9b8b9c6ee73 100644
(file)
--- 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 = {