luci-base: Add missed config parameter for cbi when converting to JSON
authorAnton Kikin <a.kikin@tano-systems.com>
Tue, 18 Feb 2020 11:00:01 +0000 (14:00 +0300)
committerJo-Philipp Wich <jo@mein.io>
Thu, 7 May 2020 17:40:49 +0000 (19:40 +0200)
commitf77df82cd23b44e87b61084567f23e1e7da20e96
tree10528fea07b68a268b22eeb23c9d80c46035f394
parentfa534c4578c80e9ef0efb768d58f1ea2e765bdcf
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 2d8299338e6c77fb15c457f5cf7f34dc0278db60)
modules/luci-base/luasrc/dispatcher.lua