# HG changeset patch # User Daniel Poelzleithner # Date 1286732432 -7200 # Node ID 165f4bd02cf354cfd063c86075fa1b2367d44418 # Parent 7d231961a9d27121829e2439367ca4a5e40054f1 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 diff -r 7d231961a9d2 -r 165f4bd02cf3 app/main/timeline/index.lua --- a/app/main/timeline/index.lua Sat Oct 09 22:34:52 2010 +0200 +++ b/app/main/timeline/index.lua Sun Oct 10 19:40:32 2010 +0200 @@ -369,6 +369,7 @@ 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 cdraft.id != draft.id ORDER BY cdraft.id DESC)"} end tmp