Commits

Daniel Poelzleithner committed 6d30e49

don't set null on auto_support field

  • Participants
  • Parent commits 49b0da9

Comments (0)

Files changed (1)

app/main/initiative/_action/add_support.lua

   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