Completed checkbox_query and rewrite of change_modules module with checkboxes

This commit is contained in:
Nathan Schneider
2022-01-02 23:13:56 -07:00
parent 28a05c584c
commit 2989bd34bd
6 changed files with 195 additions and 23 deletions

View File

@ -7,7 +7,11 @@ function modpol.util.copy_table(t)
local t2 = {}
if pairs(t) then
for k,v in pairs(t) do
t2[k] = v
if type(v) == "table" then
t2[k] = modpol.util.copy_table(v)
else
t2[k] = v
end
end
end
return t2