Bugfixes after test with Skylar!

This commit is contained in:
Nathan Schneider
2021-12-21 18:12:59 -07:00
parent 956f9a2635
commit 9a2c72c6a1
13 changed files with 71 additions and 16 deletions

View File

@ -66,7 +66,8 @@ function add_child_org_consent:create_child_org()
modpol.interactions.message_org(
self.initiator,
self.org.name,
"Child org created: "..self.data.child_name)
"Consent reached: created child org "
..self.data.child_name)
if self.data.result then self.data.result() end
self.org:delete_process(self.id)
end

View File

@ -83,7 +83,7 @@ function change_modules:remove_module()
local available_modules = {}
for k,org_mod in pairs(self.org.modules) do
if not org_mod.hide then
available_modules[org_mod.slug] = modpol.copy_table(org_mod)
available_modules[org_mod.slug] = modpol.util.copy_table(org_mod)
end end
local modules_list = {}
local modules_count = 0

View File

@ -2,9 +2,9 @@
-- A utility module for checking consent
local consent = {
name = "Consent process utility",
name = "Consent process",
slug = "consent",
desc = "A module other modules use for consent decisions",
desc = "A utility module other modules use for consent decisions",
hide = true
}