# HG changeset patch # User bsw # Date 1585065016 -3600 # Node ID f8a4260841df86978b910659469157f0a9921877 # Parent 50f5b8a97f9106106719cdb753aa54f12ca4d050 Removed auto-support diff -r 50f5b8a97f91 -r f8a4260841df app/main/initiative/_action/add_support.lua --- a/app/main/initiative/_action/add_support.lua Tue Mar 24 16:48:20 2020 +0100 +++ b/app/main/initiative/_action/add_support.lua Tue Mar 24 16:50:16 2020 +0100 @@ -1,5 +1,4 @@ local initiative = Initiative:new_selector():add_where{ "id = ?", param.get_id()}:single_object_mode():exec() -local auto_support = param.get("auto_support", atom.boolean) local draft_id = param.get("draft_id", atom.integer) @@ -52,9 +51,6 @@ supporter.member_id = member.id supporter.initiative_id = initiative.id supporter.draft_id = last_draft.id - if config.auto_support and auto_support ~= nil then - supporter.auto_support = auto_support - end supporter:save() elseif supporter.draft_id ~= last_draft.id then supporter.draft_id = last_draft.id