🔥 Sync 2026-05-23 20:23:16

This commit is contained in:
github-actions[bot] committed 2026-05-23 20:23:16 +08:00
1 parent 252b818cc5
commit b77bf4e6e9
49 files changed
+2005 -1916

No files matched your search

@@ -1293,6 +1293,11 @@ function to_check_self()
end
function luci_types(id, m, s, type_name, option_prefix)
local fv_type
local field_type = s.fields["type"]
if field_type then
fv_type = field_type:formvalue(id)
end
local rewrite_option_table = {}
for key, value in pairs(s.fields) do
if key:find(option_prefix) == 1 then
@@ -1361,6 +1366,10 @@ function luci_types(id, m, s, type_name, option_prefix)
else
s.fields[key]:depends({ type = type_name })
end
if fv_type and fv_type ~= type_name then
s.fields[key].rmempty = true
end
end
end
end