# HG changeset patch # User Daniel Poelzleithner # Date 1286651519 -7200 # Node ID 6d30e49ad609422de01bd9e2d5d53c0e08ab44f9 # Parent 49b0da970463a6a95a58104f6691401495f94457 don't set null on auto_support field diff -r 49b0da970463 -r 6d30e49ad609 app/main/initiative/_action/add_support.lua --- a/app/main/initiative/_action/add_support.lua Sat Oct 09 20:34:23 2010 +0200 +++ b/app/main/initiative/_action/add_support.lua Sat Oct 09 21:11:59 2010 +0200 @@ -33,7 +33,9 @@ supporter.member_id = member.id supporter.initiative_id = initiative.id supporter.draft_id = last_draft.id - supporter.auto_support = auto_support + if config.auto_support and auto_support ~= nil then + supporter.auto_support = auto_support + end supporter:save() slot.put_into("notice", _"Your support has been added to this initiative") if supporter.auto_active then