If a suggestion is created or updated, the suggestions.budgetid DB field is set to 0. It should be set to NULL.
Created attachment 31918 [details] [review] Bug 13005: suggestions.budgetid should be NULL if not filled On creating/updating a suggestion, the budgetid should be NULL or contain a budgetid, but not '0'. Test plan: 0/ Verify you have a suggestions.budgetid set to 0. 1/ Execute the updatedb entry and verify there is no budgetid==0 anymore. 2/ Create and update a suggestion selecting a fund and verify the budgetid DB field is correctly filled. 3/ Create and update a suggestion without selecting a fund and verify the budgetid DB field is set to NULL.
Note that this field should reference aqbudgets.budget_id.
Created attachment 31919 [details] [review] Bug 13005: suggestions.budgetid should be NULL if not filled - Unit tests prove t/db_dependent/Suggestions.t should return green
Will be fixed by bug 13007. *** This bug has been marked as a duplicate of bug 13007 ***