liquid_feedback_frontend
diff app/main/initiative/_action/create.lua @ 286:c587d8762e62
Registration process updated for Core 2.0, lockable member fields, notification settings
| author | bsw |
|---|---|
| date | Sat Feb 25 11:51:37 2012 +0100 (2012-02-25) |
| parents | b77e6a17ca77 |
| children | 75ce92899049 |
line diff
1.1 --- a/app/main/initiative/_action/create.lua Fri Feb 17 15:16:02 2012 +0100 1.2 +++ b/app/main/initiative/_action/create.lua Sat Feb 25 11:51:37 2012 +0100 1.3 @@ -87,6 +87,16 @@ 1.4 issue.area_id = area.id 1.5 issue.policy_id = policy_id 1.6 issue:save() 1.7 + 1.8 + if config.etherpad then 1.9 + local result = net.curl( 1.10 + config.etherpad.api_base 1.11 + .. "api/1/createGroupPad?apikey=" .. config.etherpad.api_key 1.12 + .. "&groupID=" .. config.etherpad.group_id 1.13 + .. "&padName=Issue" .. tostring(issue.id) 1.14 + .. "&text=" .. config.absolute_base_url .. "issue/show/" .. tostring(issue.id) .. ".html" 1.15 + ) 1.16 + end 1.17 end 1.18 1.19 initiative.issue_id = issue.id