liquid_feedback_frontend
changeset 172:165f4bd02cf3
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
new draft should only show changes of drafts drafts of new initiatives as they are handled by the new initiative event
author | Daniel Poelzleithner <poelzi@poelzi.org> |
---|---|
date | Sun Oct 10 19:40:32 2010 +0200 (2010-10-10) |
parents | 7d231961a9d2 |
children | ca006681befc |
files | app/main/timeline/index.lua |
line diff
1.1 --- a/app/main/timeline/index.lua Sat Oct 09 22:34:52 2010 +0200 1.2 +++ b/app/main/timeline/index.lua Sun Oct 10 19:40:32 2010 +0200 1.3 @@ -369,6 +369,7 @@ 1.4 local group 1.5 if event == "draft_created" then 1.6 group = { "grouped" } 1.7 + 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)"} 1.8 end 1.9 1.10 tmp