liquid_feedback_frontend

changeset 944:9d82c11a93b1

Do not add own support when creating issue/initiative in poll mode
author bsw
date Tue Nov 06 21:28:25 2012 +0100 (2012-11-06)
parents 56a741c590a0
children b865f87ea810
files app/main/initiative/_action/create.lua
line diff
     1.1 --- a/app/main/initiative/_action/create.lua	Mon Nov 05 17:40:27 2012 +0100
     1.2 +++ b/app/main/initiative/_action/create.lua	Tue Nov 06 21:28:25 2012 +0100
     1.3 @@ -168,11 +168,13 @@
     1.4  initiator.accepted = true
     1.5  initiator:save()
     1.6  
     1.7 -local supporter = Supporter:new()
     1.8 -supporter.initiative_id = initiative.id
     1.9 -supporter.member_id = app.session.member.id
    1.10 -supporter.draft_id = draft.id
    1.11 -supporter:save()
    1.12 +if not is_polling then
    1.13 +  local supporter = Supporter:new()
    1.14 +  supporter.initiative_id = initiative.id
    1.15 +  supporter.member_id = app.session.member.id
    1.16 +  supporter.draft_id = draft.id
    1.17 +  supporter:save()
    1.18 +end
    1.19  
    1.20  slot.put_into("notice", _"Initiative successfully created")
    1.21  

Impressum / About Us