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
2d8299338e6c77fb15c457f5cf7f34dc0278db60)
elseif target.type == "cbi" then
action = {
["type"] = "cbi",
- ["path"] = target.model
+ ["path"] = target.model,
+ ["config"] = target.config
}
elseif target.type == "form" then
action = {