luci-mod-admin-full: dispatch SimpleForm models using the form() action
authorJo-Philipp Wich <jo@mein.io>
Fri, 6 Apr 2018 10:10:16 +0000 (12:10 +0200)
committerJo-Philipp Wich <jo@mein.io>
Fri, 6 Apr 2018 10:10:16 +0000 (12:10 +0200)
This fixes issues dicovered by check-controllers.sh

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-mod-admin-full/luasrc/controller/admin/network.lua
modules/luci-mod-admin-full/luasrc/controller/admin/status.lua

index 070a9e616719a963fb5d1bbfe40ffe121ea00a36..ab6db4fefb10376df8c46a59591bd93888137448 100644 (file)
@@ -82,7 +82,7 @@ function index()
                end
 
 
-               page = entry({"admin", "network", "iface_add"}, cbi("admin_network/iface_add"), nil)
+               page = entry({"admin", "network", "iface_add"}, form("admin_network/iface_add"), nil)
                page.leaf = true
 
                page = entry({"admin", "network", "iface_delete"}, post("iface_delete"), nil)
index 3a1c169f21db63ba877c0ddc5f9fe55dcac45e38..4471fd597a1be0f39402d5b62248464cb9faeede 100644 (file)
@@ -14,7 +14,7 @@ function index()
        entry({"admin", "status", "routes"}, template("admin_status/routes"), _("Routes"), 3)
        entry({"admin", "status", "syslog"}, call("action_syslog"), _("System Log"), 4)
        entry({"admin", "status", "dmesg"}, call("action_dmesg"), _("Kernel Log"), 5)
-       entry({"admin", "status", "processes"}, cbi("admin_status/processes"), _("Processes"), 6)
+       entry({"admin", "status", "processes"}, form("admin_status/processes"), _("Processes"), 6)
 
        entry({"admin", "status", "realtime"}, alias("admin", "status", "realtime", "load"), _("Realtime Graphs"), 7)