id,summary,reporter,owner,description,type,status,priority,milestone,component,version,resolution,keywords,cc
1265,lf_update crashes on issue without votes,anonymous,jbe,"As the title says.

{{{
Error while calling SQL function ""check_issue""(...):
ERROR:  null value in column ""winning_initiative_id"" violates not-null constraint
CONTEXT:  SQL statement ""INSERT INTO ""battle"" ( ""issue_id"", ""winning_initiative_id"", ""losing_initiative_id"", ""count"" ) SELECT ""issue_id"", ""winning_initiative_id"", ""losing_initiative_id"", ""count"" FROM ""battle_view"" WHERE ""issue_id"" =  $1 ""
PL/pgSQL function ""close_voting"" line 46 at SQL statement
SQL statement ""SELECT  ""close_voting""( $1 )""
PL/pgSQL function ""check_issue"" line 118 at PERFORM
}}}

quickfix: removing not-null constraint from battle_view winning_initiative_id and losing_initiative_id",defect,closed,major,,Core,2.0 beta,fixed,,
