More bugfixes on displays and interactions, mainly fixing damage done two commits ago
This commit is contained in:
@ -29,11 +29,20 @@ function display_processes:initiate(result)
|
||||
input = "Org: "..v.org.name..
|
||||
", initiator: "..v.initiator
|
||||
table.insert(display_table, input)
|
||||
if v.config
|
||||
if v.config
|
||||
and modpol.util.num_pairs(v.config) > 0 then
|
||||
table.insert(display_table, "Policies:")
|
||||
for k2,v2 in pairs(v.config) do
|
||||
input = k2..": "..v2
|
||||
local v2_string = ""
|
||||
if type(v2) ~= "string"
|
||||
and type(v2) ~= "table" then
|
||||
v2_string = tostring(v2)
|
||||
elseif type(v2) == "table" then
|
||||
v2_string = table.concat(v2)
|
||||
else
|
||||
v2_string = "Could not render"
|
||||
end
|
||||
input = k2..": "..v2_string
|
||||
table.insert(display_table, input)
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user