liquid_feedback_frontend
changeset 143:a33abf457d29
add initiative_id selector in suggestion api
fixes bug #301
fixes bug #301
author | Daniel Poelzleithner <poelzi@poelzi.org> |
---|---|
date | Wed Oct 06 16:35:33 2010 +0200 (2010-10-06) |
parents | 44ba79952610 |
children | 7c3e8a1678fc |
files | app/main/api/suggestion.lua |
line diff
1.1 --- a/app/main/api/suggestion.lua Wed Oct 06 16:18:54 2010 +0200 1.2 +++ b/app/main/api/suggestion.lua Wed Oct 06 16:35:33 2010 +0200 1.3 @@ -19,6 +19,10 @@ 1.4 suggestions_selector:add_where{"suggestion.id <= ?", max_id} 1.5 end 1.6 1.7 +if initiative_id then 1.8 + suggestions_selector:add_where{"suggestion.initiative_id = ?", initiative_id} 1.9 +end 1.10 + 1.11 if order == "id_desc" then 1.12 suggestions_selector:add_order_by("suggestion.id DESC") 1.13 else