liquid_feedback_frontend

diff app/main/event/_list.lua @ 982:bb5a337b5f2a

Fix ordering of revoked initiatives
author bsw
date Sun Mar 17 16:25:49 2013 +0100 (2013-03-17)
parents dfc7b75189ed
children
line diff
     1.1 --- a/app/main/event/_list.lua	Sun Mar 17 15:55:30 2013 +0100
     1.2 +++ b/app/main/event/_list.lua	Sun Mar 17 16:25:49 2013 +0100
     1.3 @@ -166,7 +166,7 @@
     1.4            if not event.initiative_id then
     1.5              local initiatives_selector = Initiative:new_selector()
     1.6                :add_where{ "initiative.issue_id = ?", event.issue_id }
     1.7 -              :add_order_by("initiative.admitted DESC, initiative.rank, initiative.harmonic_weight DESC NULLS LAST, id")
     1.8 +              :add_order_by("initiative.admitted DESC NULLS LAST, initiative.rank NULLS LAST, initiative.harmonic_weight DESC NULLS LAST, id")
     1.9              execute.view{ module = "initiative", view = "_list", params = { 
    1.10                issue = event.issue,
    1.11                initiatives_selector = initiatives_selector,

Impressum / About Us