luci-base: Add missed config parameter for cbi when converting to JSON
The cbi() function has a second argument 'config' in which various
configuration parameters can be passed. When converting the lua menu
to JSON, we must also convert this parameter.
Signed-off-by: Anton Kikin <a.kikin@tano-systems.com>
(cherry picked from commit 2d8299338e
)
This commit is contained in:
parent
fa534c4578
commit
f77df82cd2
1 changed files with 2 additions and 1 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue