liquid_feedback_core
changeset 127:bbadd6b2634d
Bugfix in calculation of minimal rank of initiatives having a majority in function "calculate_ranks"
author | jbe |
---|---|
date | Tue May 24 03:12:20 2011 +0200 (2011-05-24) |
parents | 5edfb00d840a |
children | 5ea2f9c5ba9a |
files | core.sql |
line diff
1.1 --- a/core.sql Tue May 24 03:01:49 2011 +0200 1.2 +++ b/core.sql Tue May 24 03:12:20 2011 +0200 1.3 @@ -3821,7 +3821,8 @@ 1.4 ( "majority" = TRUE AND 1.5 "rank" = ( 1.6 SELECT min("rank") FROM "initiative" 1.7 - WHERE "issue_id" = "issue_id_p" ) ); 1.8 + WHERE "issue_id" = "issue_id_p" 1.9 + AND "majority" = TRUE ) ); 1.10 END IF; 1.11 -- mark issue as finished 1.12 UPDATE "issue" SET