X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=libs%2Fweb%2Fluasrc%2Fdispatcher.lua;h=565e995d191d5fdf38367db732dac746a471baa7;hp=89fa0d22fc15cc4a924d6ac9615b64487cab93f5;hb=f3deef9ec570d49795346516d34c1b42fb416fde;hpb=8fdb12c4d12c67d101f0c273d3484658a0c3f6b9 diff --git a/libs/web/luasrc/dispatcher.lua b/libs/web/luasrc/dispatcher.lua index 89fa0d22f..565e995d1 100644 --- a/libs/web/luasrc/dispatcher.lua +++ b/libs/web/luasrc/dispatcher.lua @@ -640,9 +640,7 @@ local function _cbi(self, ...) local state = nil for i, res in ipairs(maps) do - if config.autoapply then - res.autoapply = config.autoapply - end + res.flow = config local cstate = res:parse() if cstate and (not state or cstate < state) then state = cstate @@ -682,7 +680,7 @@ local function _cbi(self, ...) end end if not config.nofooter then - tpl.render("cbi/footer", {pageaction=pageaction, state = state, autoapply = config.autoapply}) + tpl.render("cbi/footer", {flow = config, pageaction=pageaction, state = state, autoapply = config.autoapply}) end end