Various bugfixes on defer and processes
This commit is contained in:
@ -44,6 +44,7 @@ function add_child_org:initiate(result)
|
||||
self.initiator,
|
||||
"Proposed child org: " .. input)
|
||||
-- initiate consent process
|
||||
self.data.result = result
|
||||
self:call_module(
|
||||
self.config.approval_module,
|
||||
self.initiator,
|
||||
|
@ -43,7 +43,6 @@ function defer:initiate(result)
|
||||
end
|
||||
modpol.interactions.org_dashboard(
|
||||
self.initiator, self.org.id)
|
||||
if result then result() end
|
||||
self.org:delete_process(self.id)
|
||||
end
|
||||
|
||||
|
@ -3,9 +3,9 @@
|
||||
-- @module join_org
|
||||
|
||||
local join_org = {
|
||||
name = "Join this org (consent)",
|
||||
name = "Join this org",
|
||||
slug = "join_org",
|
||||
desc = "Adds member with consent of all members"
|
||||
desc = "Allows initiator to join this org"
|
||||
}
|
||||
|
||||
join_org.data = {
|
||||
|
Reference in New Issue
Block a user