liquid_feedback_frontend

changeset 165:6d30e49ad609

don't set null on auto_support field
author Daniel Poelzleithner <poelzi@poelzi.org>
date Sat Oct 09 21:11:59 2010 +0200 (2010-10-09)
parents 49b0da970463
children ab0149f40b75
files app/main/initiative/_action/add_support.lua
line diff
     1.1 --- a/app/main/initiative/_action/add_support.lua	Sat Oct 09 20:34:23 2010 +0200
     1.2 +++ b/app/main/initiative/_action/add_support.lua	Sat Oct 09 21:11:59 2010 +0200
     1.3 @@ -33,7 +33,9 @@
     1.4    supporter.member_id = member.id
     1.5    supporter.initiative_id = initiative.id
     1.6    supporter.draft_id = last_draft.id
     1.7 -  supporter.auto_support = auto_support
     1.8 +  if config.auto_support and auto_support ~= nil then
     1.9 +    supporter.auto_support = auto_support
    1.10 +  end
    1.11    supporter:save()
    1.12    slot.put_into("notice", _"Your support has been added to this initiative")
    1.13    if supporter.auto_active then

Impressum / About Us