luci-base: Add missed config parameter for cbi when converting to JSON
[oweals/luci.git] / modules / luci-base / luasrc / dispatcher.lua
index c227b68c858d00731a85010a9a5a8db7a5c7fa7b..118ca221aee66ff82f4e04041a7de9b8b9c6ee73 100644 (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 = {