|
@@ -234,7 +234,12 @@ modpol.add_org = function(org_name, members, parent_id, properties)
|
|
|
end
|
|
|
end
|
|
|
|
|
|
- local msg = "New org: " .. org_name .. " ["..org_id.."], parent = ".. parent_org_id or ""..", members = "..
|
|
|
+ local parent_id_str = "none"
|
|
|
+ if parent_org_id then
|
|
|
+ parent_id_str = tostring(parent_org_id)
|
|
|
+ end
|
|
|
+
|
|
|
+ local msg = "New org: " .. org_name .. " ["..org_id.."], parent = ".. parent_id_str ..", members = "..
|
|
|
" (" .. table.concat (members, ", ") .. ")"
|
|
|
|
|
|
modpol.record (org_id, msg, 'org_init')
|