Revert "luci-base: force menu to regenerate after uci change"
authorHannu Nyman <hannu.nyman@iki.fi>
Sun, 17 Mar 2024 07:17:20 +0000 (09:17 +0200)
committerHannu Nyman <hannu.nyman@iki.fi>
Sun, 17 Mar 2024 07:17:20 +0000 (09:17 +0200)
commitf2a49104c4839cc61c0c6a32cf0b616ca7b7d667
tree7bbdba02c33f80ed329248ce8d7f36c75138aac3
parent750661ddbbee4d00044fb868024a83c8489f4051
Revert "luci-base: force menu to regenerate after uci change"

This reverts commit 97ebdcbddb9cad76dc551086fcb887e55886a069.

The commit seems to cause errors already before the login screen.
Discussion in https://github.com/openwrt/luci/commit/97ebdcbddb9cad76dc551086fcb887e55886a069#commitcomment-139871175

Errors like:

 In error(), file [C]
 called from function [anonymous function] (/usr/lib/lua/luci/ucodebridge.lua:23)
 called from function ((tail call))
 In [anonymous function](), file /usr/share/ucode/luci/runtime.uc, line 148, byte 45:
   called from function build_pagetree (/usr/share/ucode/luci/dispatcher.uc:382:73)
   called from function menu_json (/usr/share/ucode/luci/dispatcher.uc:439:26)
   called from function [anonymous function] (/usr/share/ucode/luci/dispatcher.uc:898:24)
   called from anonymous function (/www/cgi-bin/luci:39:13)

  `        return lcall.call(modname, method, ...args);`
   Near here ----------------------------------------^

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
modules/luci-base/htdocs/luci-static/resources/uci.js
modules/luci-base/htdocs/luci-static/resources/ui.js
modules/luci-base/ucode/dispatcher.uc