snnrk / redmine_mailwrapper

Plugin for Redmine to rewrite mail according to rules for each projects.
12 stars 1 forks source link

Deletion of rules and recipients don't work #8

Closed saz closed 7 years ago

saz commented 11 years ago

Hi,

if I try to delete an issue tracking rule or an recipient, I'm receiving an error 500:

Started POST "/mailwrapper_issue_rules/del?id=9&project_id=kundenservice" for 192.168.0.16 at Wed Jun 05 15:07:07 +0200 2013
Processing by MailwrapperIssueRulesController#del as HTML
  Parameters: {"authenticity_token"=>"M4/Wkzop64fEmxvRxHGv+f5u2wg0lzY8Kjj4I3OwYu0=", "project_id"=>"kundenservice", "id"=>"9"}
  Current user: saz (id=16)
Completed 500 Internal Server Error in 112ms

ActiveRecord::StatementInvalid (PG::Error: ERROR:  null value in column "priority" violates not-null constraint
: UPDATE "mailwrapper_issue_rules" SET "priority" = NULL WHERE "mailwrapper_issue_rules"."id" = 9):
  lib/plugins/acts_as_list/lib/active_record/acts/list.rb:149:in `remove_from_list'

Any idea, how to fix this?