Daniel Poelzleithner  committed 165f4bd

don't show the first draft of a new initiative as a new draft event in the timeline

new draft should only show changes of drafts drafts of new initiatives as they are handled by the new initiative event

  • Participants
  • Parent commits 7d23196
  • Branches default

Comments (0)

Files changed (1)

File app/main/timeline/index.lua

       local group
       if event == "draft_created" then
         group = { "grouped" }
+        tmp:add_where{"EXISTS(SELECT 1 from draft as cdraft WHERE draft.initiative_id = cdraft.initiative_id AND != ORDER BY DESC)"}