diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/luci-lua-runtime/luasrc/dispatcher.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/luci-lua-runtime/luasrc/dispatcher.lua b/modules/luci-lua-runtime/luasrc/dispatcher.lua index cd850aa365..5c349114c4 100644 --- a/modules/luci-lua-runtime/luasrc/dispatcher.lua +++ b/modules/luci-lua-runtime/luasrc/dispatcher.lua @@ -186,6 +186,11 @@ function process_lua_controller(path) entry.auth = {} end + if entry.action == nil and type(entry.target) == "table" then + entry.action = entry.target + entry.target = nil + end + entry.leaf = nil entry.file_depends = nil |