Removed child org from parent children list
This commit is contained in:
@ -137,11 +137,15 @@ function modpol.interactions.org_dashboard(user, org_string)
|
||||
|
||||
-- prepare children menu
|
||||
local children = {}
|
||||
for k,v in ipairs(org.children) do
|
||||
local this_child = modpol.orgs.get_org(v)
|
||||
table.insert(children, this_child.name)
|
||||
if org.children then
|
||||
for k,v in ipairs(org.children) do
|
||||
local this_child = modpol.orgs.get_org(v)
|
||||
if this_child then
|
||||
table.insert(children, this_child.name)
|
||||
end
|
||||
end
|
||||
table.sort(children)
|
||||
end
|
||||
table.sort(children)
|
||||
|
||||
-- prepare modules menu
|
||||
local modules = {}
|
||||
|
Reference in New Issue
Block a user