Cleans up status assignment in IssuesController#new handled by Issue#safe_attributes= now.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3606 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2010-03-20 17:37:04 +00:00
parent 533590c29c
commit e584ae220d
3 changed files with 53 additions and 11 deletions
+5
View File
@@ -163,6 +163,11 @@ class Issue < ActiveRecord::Base
end
issue
end
def status_id=(sid)
self.status = nil
write_attribute(:status_id, sid)
end
def priority_id=(pid)
self.priority = nil