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:
Anton Kikin 2020-02-18 14:00:01 +03:00 committed by Jo-Philipp Wich
parent fa534c4578
commit f77df82cd2

View file

@ -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 = {